A method is defined if:
- the class has a method with the specified name
- an attached behavior has a method with the given name (when $checkBehaviors is true).
/** * @inheritdoc */ public function hasMethod($name, $checkBehaviors = true) { if (method_exists($this->obj, $name)) { return true; } return parent::hasMethod($name, $checkBehaviors); }