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