/**
  * Registration view for an event
  *
  * @param \DERHANSEN\SfEventMgt\Domain\Model\Event $event Event
  *
  * @return void
  */
 public function registrationAction(Event $event)
 {
     if ($event->getRestrictPaymentMethods()) {
         $paymentMethods = $this->paymentService->getRestrictedPaymentMethods($event);
     } else {
         $paymentMethods = $this->paymentService->getPaymentMethods();
     }
     $this->view->assign('event', $event);
     $this->view->assign('paymentMethods', $paymentMethods);
 }
Example #2
0
 /**
  * @test
  * @return void
  */
 public function setRestrictPaymentMethodsSetsRestrictPaymentMethodsForBoolean()
 {
     $this->subject->setRestrictPaymentMethods(true);
     $this->assertTrue($this->subject->getRestrictPaymentMethods());
 }