/** * @param OrderItem $item * * @return $this */ public function removeItem(OrderItem $item) { $this->items->removeElement($item); return $this; }
public function hasItems() { return $this->items->count() > 0; }
public function addOrderItem(OrderItem $orderItem) { $this->orderItems->add($orderItem); }
/** * @return int */ public function getItemsOrderedCount() { return $this->items->count(); }