Update RequestInterface to inherit from RouteableInterface

This commit is contained in:
PJ Dietz 2013-08-25 23:05:13 -04:00
parent e3e98377c3
commit a756adf933
2 changed files with 2 additions and 8 deletions

View File

@ -2,14 +2,8 @@
namespace pjdietz\WellRESTed\Interfaces;
interface RoutableInterface
interface RoutableInterface extends RequestInterface
{
/** @return string HTTP request method (e.g., GET, POST, PUT). */
public function getMethod();
/** @return string The path component of a URI for this Routeable */
public function getPath();
/** @return int The number of times a router has dispatched this Routable */
public function getRouteDepth();

View File

@ -31,7 +31,7 @@ use pjdietz\WellRESTed\Interfaces\RoutableInterface;
* @property array query Associative array of query parameters
* @property array uri Full URI (protocol, hostname, path, etc.)
*/
class Request extends Message implements RequestInterface, RoutableInterface
class Request extends Message implements RoutableInterface
{
/**
* Singleton instance derived from reading info from Apache.