Prado\Collections\TAttributeCollection::hasProperty PHP Метод

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

This method overrides parent implementation by returning true if the collection contains the named key.
public hasProperty ( $name ) : boolean
Результат boolean whether the property is defined
    public function hasProperty($name)
    {
        return $this->contains($name) || parent::canGetProperty($name) || parent::canSetProperty($name);
    }

Usage Example

Пример #1
0
 public function testHasProperty()
 {
     $collection = new TAttributeCollection();
     self::assertEquals(false, $collection->hasProperty('Property'));
     $collection->Property = 'value';
     self::assertEquals(true, $collection->hasProperty('Property'));
 }