src/SecucardConnect/Product/Common/Model/BaseCollection.php
public function get($id)
    {
        foreach ($this->items as $item) {
            if ($item->id === $id) {
                return $item;
            }
        }
        return null;
    }
public function get($id)
    {
        foreach ($this->items as $item) {
            if ($item->id === $id) {
                return $item;
            }
        }
        return null;
    }
public function get ( $ id ) { foreach ( $ this -> items as $ item ) { if ( $ item -> id === $ id ) { return $ item ; } } return null ; }
Get object in the collection by id
@param string $id
@return mixed|null
Get object in the collection by id