lib/API/Values/Collection/Collection.php
public function getItem(int $position): ?APIItem
    {
        foreach ($this->items as $item) {
            if ($item->getPosition() === $position) {
                return $item;
            }
        }

        return null;
    }
public function getItem(int $position): ?APIItem
    {
        foreach ($this->items as $item) {
            if ($item->getPosition() === $position) {
                return $item;
            }
        }

        return null;
    }
public function getItem ( int $ position ) : ? APIItem { foreach ( $ this -> items as $ item ) { if ( $ item -> getPosition ( ) === $ position ) { return $ item ; } } return null ; }
Returns the item at specified position.
Returns the item at specified position .