public function removePayment($paymentDetail) { return $this->setPayments(array_diff($this->getPayments(), array($paymentDetail))); }