protected function getGopay() { if (!$this->gopay) { throw new GopayException('No gopay set'); } return $this->gopay; }