payments[0]) ? $this->payments[0] : null; } /** * This is the payment which was pre-authed. * * @return PensioAPIPayment */ public function getPrimaryPayment() { return isset($this->payments[1]) ? $this->payments[1] : null; } }