route = $route; $this->parameters = $parameters; $this->referenceType = $referenceType; } /** * Get route name or object. * * @return string|Route */ public function getRoute() { return $this->route; } /** * Set route name or object. * * @param string|Route $route */ public function setRoute($route) { $this->route = $route; } /** * Get route parameters. * * @return array */ public function getParameters() { return $this->parameters; } /** * Set the route parameters. * * @param array $parameters */ public function setParameters(array $parameters) { $this->parameters = $parameters; } /** * Set a route parameter. * * @param string $key * @param mixed $value */ public function setParameter($key, $value) { $this->parameters[$key] = $value; } /** * Remove a route parameter by key. * * @param string $key */ public function removeParameter($key) { unset($this->parameters[$key]); } /** * The type of reference to be generated (one of the constants in UrlGeneratorInterface). * * @return bool|string */ public function getReferenceType() { return $this->referenceType; } /** * The type of reference to be generated (one of the constants in UrlGeneratorInterface). * * @param bool|string $referenceType */ public function setReferenceType($referenceType) { $this->referenceType = $referenceType; } }