hasProperty() public method

This method overrides parent implementation by returning true if the collection contains the named key.
public hasProperty ( $name ) : boolean
return boolean whether the property is defined
コード例 #1
0
 public function testHasProperty()
 {
     $collection = new TAttributeCollection();
     self::assertEquals(false, $collection->hasProperty('Property'));
     $collection->Property = 'value';
     self::assertEquals(true, $collection->hasProperty('Property'));
 }