/**
  * @param Account $account
  *
  * @return PaymentTerm
  */
 public function removeAccount(Account $account)
 {
     if ($this->accounts->contains($account)) {
         $this->accounts->removeElement($account);
     }
     return $this;
 }
Example #2
0
 /**
  * @param Account $child
  *
  * @return $this
  */
 public function removeChild(Account $child)
 {
     if ($this->hasChild($child)) {
         $child->setParent(null);
         $this->children->removeElement($child);
     }
     return $this;
 }
Example #3
0
 /**
  * @param Account $account
  *
  * @return $this
  */
 public function removeDefaultInAccount(Account $account)
 {
     $this->defaultInAccounts->removeElement($account);
     if ($account->getDefaultContact() === $this) {
         $account->setDefaultContact(null);
     }
     return $this;
 }