Update Route docblocks
This commit is contained in:
parent
297e985e84
commit
22a17e42bb
|
|
@ -16,11 +16,12 @@ class PrefixRoute extends Route
|
|||
}
|
||||
|
||||
/**
|
||||
* Examines a request target to see if it is a match for the route.
|
||||
*
|
||||
* @param string $requestTarget
|
||||
* @param array $captures
|
||||
* @return bool
|
||||
* @return boolean
|
||||
*/
|
||||
public function matchesRequestTarget($requestTarget, &$captures = null)
|
||||
public function matchesRequestTarget($requestTarget)
|
||||
{
|
||||
return strrpos($requestTarget, $this->target, -strlen($requestTarget)) !== false;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -15,9 +15,10 @@ class RegexRoute extends Route
|
|||
}
|
||||
|
||||
/**
|
||||
* Examines a request target to see if it is a match for the route.
|
||||
*
|
||||
* @param string $requestTarget
|
||||
* @return bool
|
||||
* @throws \RuntimeException
|
||||
* @return boolean
|
||||
*/
|
||||
public function matchesRequestTarget($requestTarget)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -23,8 +23,9 @@ interface RouteInterface extends MiddlewareInterface
|
|||
public function getMethodMap();
|
||||
|
||||
/**
|
||||
* Examines a path (request target) to see if it is a match for the route.
|
||||
* Examines a request target to see if it is a match for the route.
|
||||
*
|
||||
* @param string $requestTarget
|
||||
* @return boolean
|
||||
*/
|
||||
public function matchesRequestTarget($requestTarget);
|
||||
|
|
|
|||
|
|
@ -10,8 +10,9 @@ class StaticRoute extends Route
|
|||
}
|
||||
|
||||
/**
|
||||
* Examines a path (request target) to see if it is a match for the route.
|
||||
* Examines a request target to see if it is a match for the route.
|
||||
*
|
||||
* @param string $requestTarget
|
||||
* @return boolean
|
||||
*/
|
||||
public function matchesRequestTarget($requestTarget)
|
||||
|
|
|
|||
Loading…
Reference in New Issue