/** * @return Registration */ protected function createRegistration() { $registration = new Registration(); $registration->setBillingAddress($this->createBillingAddress()); $registration->addParticipant($this->createFullParticipant()); $registration->addParticipant($this->createParticipant()); return $registration; }
/** * @param \T3DD\Backend\Domain\Model\Registration\Registration $registration */ public function deleteAction(\T3DD\Backend\Domain\Model\Registration\Registration $registration) { if (!$this->securityContext->hasRole('T3DD.Backend:Administrator') && (!$registration->getSecondsToExpiration() || $registration->getAccount() !== $this->securityContext->getAccount())) { $this->response->setStatus(403); return; } $this->registrationRepository->remove($registration); $this->view->assign('value', NULL); }
/** * @param string $notes */ public function setNotes($notes) { $this->payload->setNotes($notes); }