public function addPayment(AbstractPayment $payment) { $payment->setOrder($this); $this->payments[] = $payment; }