$value) { $this->$param = $value; } } /** * Check if behavior has specific method. * * @param string $name name of the method * * @return boolean */ public function hasMethod($name) { return method_exists($this, $name); } /** * Check if behavior has specific attribute. * * @param string $name name of the attribute * * @return boolean */ public function hasAttribute($name) { return property_exists($this, $name); } /** * Set test owning the behavior. * * @param mixed $test owner test */ public function setTest($test) { $this->test = $test; } }