/** * Create a new SelectableRoute object. * * @param boolean $fixed If the SelectableRoute is fixed. * @param boolean $required If the SelectableRoutei is required. * @param boolean $visible If the SelectableRoute is visible. * @param boolean $keepTogether If the SelectableRoute must be kept together. */ public function __construct($fixed = false, $required = false, $visible = true, $keepTogether = true) { parent::__construct(); $this->setFixed($fixed); $this->setRequired($required); $this->setVisible($visible); $this->setKeepTogether($keepTogether); }
/** * @param Route $route The unparsed route whose properties we are copying */ public function __construct(Route $route) { parent::__construct($route->getMethods(), $route->getRawPath(), $route->getController()); $this->setName($route->getName()); $this->setRawHost($route->getRawHost()); $this->addMiddleware($route->getMiddleware()); $this->setSecure($route->isSecure()); $this->setVarRegexes($route->varRegexes); }
/** * RouteLink constructor. * * @param $params * @param \HBM\DatagridBundle\Model\Route $route */ public function __construct($params, Route $route) { parent::__construct(); $this->params = $params; if ($route !== NULL) { $this->name = $route->getName(); $this->defaults = $route->getDefaults(); } }
/** * @param string $path * @param array $parameter */ public function __construct($actionName, $path, $description = 'no description') { parent::__construct(self::TYPE_HEAD, $actionName, $path, $description); }
function __construct($pattern, $args = array()) { parent::__construct($pattern, $args); }
public function __construct($app, $pattern, $callback, $name = null) { parent::__construct($app, 'GET', $pattern, $callback, $name); }
/** * @param string $method * @param string $route * @param callable $callback */ public function __construct($method, $route, $callback) { parent::__construct($route, $callback); $this->method = strtoupper($method); }