public function getItem($id)
    {
        foreach ($this->entity->getItems() as $item) {
            if ($item->getId() === $id) {
                return $item;
            }
        }

        return null;
    }
public function getItem($id)
    {
        foreach ($this->entity->getItems() as $item) {
            if ($item->getId() === $id) {
                return $item;
            }
        }

        return null;
    }
public function getItem ( $ id ) { foreach ( $ this -> entity -> getItems ( ) as $ item ) { if ( $ item -> getId ( ) === $ id ) { return $ item ; } } return null ; }
Get item entity by id

@param $id

@return mixed
Get item entity by id