Beispiel #1
0
 /**
  * @param ResourceInterface $resource
  * @param string            $action
  * @param View              $view
  */
 public function __construct(ResourceInterface $resource, $action, View $view)
 {
     parent::__construct($resource, $action);
     $this->view = $view;
 }
Beispiel #2
0
 /**
  * @param ResourceInterface  $resource
  * @param FormInterface|null $form
  * @param int                $statusCode
  */
 public function __construct(ResourceInterface $resource, FormInterface $form = null, $statusCode = Response::HTTP_NO_CONTENT)
 {
     parent::__construct($resource);
     $this->form = $form;
     $this->statusCode = $statusCode;
 }
Beispiel #3
0
 public function testInitialState()
 {
     $this->assertSame($this->resource, $this->event->getResource());
 }