Esempio n. 1
0
 /**
  * @param string $route
  */
 public function __construct($route)
 {
     if (!is_string($route)) {
         throw new InvalidArgumentException('Route resource identifier must be string');
     }
     parent::__construct($route);
 }
Esempio n. 2
0
 /**
  * @param string                        $resourceId
  * @param ResourceInterface|string|null $parent
  */
 public function __construct($resourceId, $parent = null)
 {
     parent::__construct($resourceId);
     $this->setParent($parent);
 }