public function rule_class($a) { if (!is_object($a)) { return $this->fail('is not an object'); } $this->prefix = 'class of '; return get_class($a); }