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

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

This overrides the parent implementation by converting the key to lower case first if CaseSensitive is false.
public itemAt ( $key ) : mixed
Результат mixed the element at the offset, null if no element is found at the offset
    public function itemAt($key)
    {
        return parent::itemAt($this->_caseSensitive ? $key : strtolower($key));
    }

Usage Example

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