/** * @inheritdoc */ public function removeChild(OrderItemInterface $item) { if (!$this->children->contains($item)) { $item->setParent(null); $this->children->removeElement($item); } return $this; }
/** * {@inheritdoc} */ public function isEmpty() { return $this->items->isEmpty(); }
/** * @inheritdoc */ public function removeItem(OrderItemInterface $item) { if ($this->hasItem($item)) { $item->setOrder(null); $this->items->removeElement($item); } return $this; }