コード例 #1
0
 /**
  * DisplayCommand constructor.
  *
  * @param   string            $entityName The name of the entity to be displayed
  * @param   integer           $id         The ID of the entity
  * @param   RendererInterface $renderer   The renderer to use for output
  */
 public function __construct($entityName, $id, $renderer)
 {
     $this->entityName = $entityName;
     $this->id = $id;
     $this->renderer = $renderer;
     parent::__construct();
 }
コード例 #2
0
 public function __construct($arg1 = null, $arg2 = null)
 {
     parent::__construct();
     $this->validate($arg1, $arg2);
     $this->arg1 = $arg1;
     $this->arg2 = $arg2;
 }
コード例 #3
0
 /**
  * DisplayPageCommand constructor.
  *
  * @param   integer                $id      The page ID
  * @param   array                  $vars    Routing variables
  * @param   ServerRequestInterface $request The request object
  * @param   StreamInterface        $stream  The output stream
  * @param   ContainerInterface     $container
  */
 public function __construct($id, $vars, $request, $stream, $container)
 {
     $this->id = $id;
     $this->vars = $vars;
     $this->request = $request;
     $this->stream = $stream;
     $this->container = $container;
     parent::__construct();
 }
コード例 #4
0
 public function __construct($test = null)
 {
     $this->test = $test;
     parent::__construct();
 }