Пример #1
0
 /**
  * @inheritdoc
  */
 public function addChild(CustomerInterface $child)
 {
     if (!$this->hasChild($child)) {
         $this->children->add($child);
     }
     return $this;
 }
Пример #2
0
 /**
  * @inheritdoc
  */
 public function addCustomer(CustomerInterface $customer)
 {
     if (!$this->hasCustomer($customer)) {
         $this->customers->add($customer);
     }
     return $this;
 }