Neos\Flow\Reflection\ClassSchema::isPropertyLazy PHP Метод

isPropertyLazy() публичный Метод

If a certain class schema property is to be lazy loaded
public isPropertyLazy ( string $propertyName ) : boolean
$propertyName string Name of the property
Результат boolean
    public function isPropertyLazy($propertyName)
    {
        return $this->properties[$propertyName]['lazy'];
    }

Usage Example

 /**
  * @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'));
 }