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

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

This overrides the parent implementation by converting the key to lower case first if CaseSensitive is false.
public contains ( $key ) : boolean
Результат boolean whether the map contains an item with the specified key
    public function contains($key)
    {
        return parent::contains($this->_caseSensitive ? $key : strtolower($key));
    }

Usage Example

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