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