Пример #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;
 }
Пример #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;
 }
Пример #3
0
 public function testInitialState()
 {
     $this->assertSame($this->resource, $this->event->getResource());
 }