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

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

This method overrides parent implementation by always returning true because you can always add a new value to the collection.
public canSetProperty ( $name ) : boolean
Результат boolean true
    public function canSetProperty($name)
    {
        return true;
    }

Usage Example

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