Returns the value for the given parameter from the requested route.
@param string $name The name of the parameter
@return string The value for the parameter
480107
public function getParameter(string $name): string
    {
        if (!isset($this->values[$name])) {
            throw new \InvalidArgumentException("Invalid route parameter '$name'");
        }

        return $this->values[$name];
    }
407439
public function route($name)
    {
        if (array_key_exists($name, $this->allNames)) {
            return $this->allNames[$name];
        }

        return null;
    }
843277
public function getParams($name=NULL) {
		if(!isset($this->payload['params'])) {
			return NULL;
		}
		$params = $this->payload['params'];
		if(isset($name)) {
			if(isset($params[$name])) {
				return $params[$name];
			}
		} else {
			return $params;
		}
		return NULL;
	}
1361475
public function getValue($name)
	{
		if (! isset($this->values[$name]))
		{
			$this->values[$name] = arg($name);
		}

		return $this->values[$name];
	}
867271
public function get(string $name): Parameter
    {
        if (!$this->has($name)) {
            //Automatically creating constant
            $parameter = new Parameter($name);
            $this->add($parameter);

            return $parameter;
        }

        return parent::get($name);
    }
1171050
public function getByName($name) {
		$param = $this->findByName($name);
		if (empty($param)) {
			$param = new Parameter();
			$param->setName($name);
			$this->parameters->add($param);
		}

		return $param;
	}
655580
public function getValue($name)
    {

        $returnValue = '';

        if (array_key_exists($name, $this->variablesForTemplate)) {
            $returnValue = $this->variablesForTemplate[$name];
        }

        return $returnValue;
    }
200256
public function getPathParameter($name)
    {
        if (!$this->hasPathParameter($name)) {
            throw new \InvalidArgumentException(sprintf('The path request parameter "%s" does not exist.', $name));
        }

        return $this->pathParameters[$name];
    }
978559
public function getRouteUrlByName($name, array $parameters = [])
    {
        $route = $this->getRouteByName($name);
        if (!$route) {
            return null;
        }
        return $route->buildUrlWithParameters($parameters);
    }
507875
public function offsetGet($name)
    {
        if(isset($this->routes[$name]))
            return $this->routes[$name];

        $route = $this->factory->createRoute($this, $name, array());

        $this->addRoute($route);

        return $this->routes[$name] = $route;
    }
1052594
public function oneNamed(string $name): ?Route
    {
        if (!array_key_exists($name, $this->named)) {
            return null;
        }

        return $this->named[$name];
    }
145210
public function getParam($name)
    {
        if ( ! is_string($name) || ! isset($this->data[$name])) {
            return null;
        }

        return $this->data[$name];
    }
182042
public function getParam($name) {
		if(isset($this->payload['params'][$name])) {
			return $this->payload['params'][$name];
		}
		return NULL;
	}
404324
public function get($name)
    {
        if (!isset($this->routes[$name])) {
            throw new \DomainException('Route does not exist!');
        }

        return $this->routes[$name];
    }
394412
public function getUrlFromName($name)
    {
        $searchEngineNames = $this->getNames();
        if (isset($searchEngineNames[$name])) {
            $url = 'http://' . $searchEngineNames[$name];
        } else {
            $url = 'URL unknown!';
        }
        return $url;
    }
758187
public function getNamedRoute($name)
    {
        $this->getNamedRoutes();
        if ($this->hasNamedRoute($name)) {
            return $this->namedRoutes[(string) $name];
        } else {
            return null;
        }
    }
436811
public function get($name)
    {
        if (!array_key_exists($name, $this->_values)) {
            return null;
        }

        return $this->_values[$name];
    }