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