From a756adf933fb46573dee2b25d9455388dcee49b5 Mon Sep 17 00:00:00 2001 From: PJ Dietz Date: Sun, 25 Aug 2013 23:05:13 -0400 Subject: [PATCH] Update RequestInterface to inherit from RouteableInterface --- src/pjdietz/WellRESTed/Interfaces/RoutableInterface.php | 8 +------- src/pjdietz/WellRESTed/Request.php | 2 +- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/src/pjdietz/WellRESTed/Interfaces/RoutableInterface.php b/src/pjdietz/WellRESTed/Interfaces/RoutableInterface.php index 932062b..db6ca98 100644 --- a/src/pjdietz/WellRESTed/Interfaces/RoutableInterface.php +++ b/src/pjdietz/WellRESTed/Interfaces/RoutableInterface.php @@ -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(); diff --git a/src/pjdietz/WellRESTed/Request.php b/src/pjdietz/WellRESTed/Request.php index 82f2079..a31c4a1 100644 --- a/src/pjdietz/WellRESTed/Request.php +++ b/src/pjdietz/WellRESTed/Request.php @@ -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.