src/Model/Items.php
public function id($id) {
        foreach ($this->items as $item) {
            if ($item->itemId == $id) return $item;
        }

        return null;
    }
public function id($id) {
        foreach ($this->items as $item) {
            if ($item->itemId == $id) return $item;
        }

        return null;
    }
public function id ( $ id ) { foreach ( $ this -> items as $ item ) { if ( $ item -> itemId == $ id ) return $ item ; } return null ; }
Returns item by it's item id.
@param  string $id Item id
@return object     The item (null if not found)
Returns item by it s item id .