/** * @inheritdoc */ public function hasMethod($name, $checkBehaviors = true) { if (method_exists($this->obj, $name)) { return true; } return parent::hasMethod($name, $checkBehaviors); }