public function match(&$routePath)
{
$this->value = null;
if ($this->name === null || $this->name === '') {
return false;
}
if ($routePath === '') {
return false;
}
$valueToMatch = substr($routePath, 0, strlen($this->name));
if ($valueToMatch !== $this->name) {
return false;
}
$shortenedRequestPath = substr($routePath, strlen($valueToMatch));
$routePath = $shortenedRequestPath !== false ? $shortenedRequestPath : '';
return true;
}