public getConstructor ( ) : |
||
return | Method reflection object of the constructor method |
public function getConstructor()
{
$parentConstructor = parent::getConstructor();
return !is_object($parentConstructor) ? $parentConstructor : new MethodReflection($this->getName(), $parentConstructor->getName());
}
/** * @test */ public function getConstructorReturnsFlowsMethodReflection() { $class = new ClassReflection(__CLASS__); $constructor = $class->getConstructor(); $this->assertInstanceOf(MethodReflection::class, $constructor, 'The returned method is not of type \\Neos\\Flow\\Reflection\\MethodReflection.'); }