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

This method overrides parent implementation by returning true if the collection contains the named key.
public canGetProperty ( $name ) : boolean
Результат boolean whether the property can be read
Пример #1
0
 public function testCanNotGetUndefinedProperty()
 {
     $collection = new TAttributeCollection(array(), true);
     self::assertEquals(false, $collection->canGetProperty('Property'));
     try {
         $value = $collection->Property;
     } catch (TInvalidOperationException $e) {
         return;
     }
     self::fail('An expected TInvalidOperationException was not raised');
 }