From 06781fa0a27fe2a674384203f81a0b180ea9fd93 Mon Sep 17 00:00:00 2001 From: Emanuele Minotto Date: Sat, 19 Sep 2015 14:13:48 +0100 Subject: [PATCH] Updated docblocks --- src/App.php | 2 ++ src/Dispatcher.php | 1 + src/Event/HttpFlowEvent.php | 12 +++++++++++- 3 files changed, 14 insertions(+), 1 deletion(-) diff --git a/src/App.php b/src/App.php index a0c6b91..a58f2c1 100644 --- a/src/App.php +++ b/src/App.php @@ -39,6 +39,8 @@ class App * * @param mixed $router Routing system. * @param ContainerInterface $container Dependency Injection container. + * + * @throws Exception If no router is defined. */ public function __construct($router = null, ContainerInterface $container = null) { diff --git a/src/Dispatcher.php b/src/Dispatcher.php index 188672b..eb5f746 100644 --- a/src/Dispatcher.php +++ b/src/Dispatcher.php @@ -35,6 +35,7 @@ public function __construct(FastRouterDispatcherInterface $router) * * @throws RouteNotFound If the route is not found. * @throws MethodNotAllowed If the method is not allowed. + * @throws Exception If no one case is matched. * * @return array */ diff --git a/src/Event/HttpFlowEvent.php b/src/Event/HttpFlowEvent.php index 7577f57..0470763 100644 --- a/src/Event/HttpFlowEvent.php +++ b/src/Event/HttpFlowEvent.php @@ -9,11 +9,15 @@ class HttpFlowEvent extends Event { /** * Representation of an outgoing, client-side request. + * + * @var mixed */ private $request; /** * Representation of an outgoing, server-side response. + * + * @var mixed */ private $response; @@ -48,7 +52,7 @@ public function __construct($name, $request, $response) /** * Response getter. * - * @return ResponseInterface|mixed + * @return mixed */ public function getResponse() { @@ -57,6 +61,8 @@ public function getResponse() /** * Response setter. + * + * @param mixed $response Representation of an outgoing, server-side response. */ public function setResponse($response) { @@ -65,6 +71,8 @@ public function setResponse($response) /** * Request setter. + * + * @param mixed $request Representation of an outgoing, client-side request. */ public function setRequest($request) { @@ -73,6 +81,8 @@ public function setRequest($request) /** * Request getter. + * + * @return mixed */ public function getRequest() {