public isPropertyLazy ( string $propertyName ) : boolean | ||
$propertyName | string | Name of the property |
return | boolean |
public function isPropertyLazy($propertyName)
{
return $this->properties[$propertyName]['lazy'];
}
/** * @test */ public function isPropertyLazyReturnsAttributeForAddedProperties() { $classSchema = new ClassSchema('SomeClass'); $classSchema->addProperty('a', 'Neos\\Flow\\SomeObject'); $classSchema->addProperty('b', 'Neos\\Flow\\SomeObject', true); $this->assertFalse($classSchema->isPropertyLazy('a')); $this->assertTrue($classSchema->isPropertyLazy('b')); }