public getProperty ( string $name ) : |
||
$name | string | Name of the property |
return | Property reflection object of the specified property in this class |
public function getProperty($name)
{
return new PropertyReflection($this->getName(), $name);
}
/** * @test */ public function getPropertyReturnsFlowsPropertyReflection() { $class = new ClassReflection(__CLASS__); $this->assertInstanceOf(PropertyReflection::class, $class->getProperty('someProperty'), 'The returned property is not of type \\Neos\\Flow\\Reflection\\PropertyReflection.'); $this->assertEquals('someProperty', $class->getProperty('someProperty')->getName(), 'The returned property seems not to be the right one.'); }