/** * Replacement for the original getConstructor() method which makes sure * that Tx_Extbase_Reflection_MethodReflection objects are returned instead of the * orginal ReflectionMethod instances. * * @return Tx_ExtensionBuilder_Reflection_MethodReflection Method reflection object of the constructor method */ public function getConstructor() { $parentConstructor = parent::getConstructor(); if (!is_object($parentConstructor)) { return $parentConstructor; } return new Tx_ExtensionBuilder_Reflection_MethodReflection($this->getName(), $parentConstructor->getName()); }