1 | <?php |
||
9 | class ZendHttpFlowEvent extends Event implements PennyEventInterface |
||
10 | { |
||
11 | /** |
||
12 | * Representation of an outgoing, client-side request. |
||
13 | * |
||
14 | * @var mixed |
||
15 | */ |
||
16 | private $request; |
||
17 | |||
18 | /** |
||
19 | * Representation of an outgoing, server-side response. |
||
20 | * |
||
21 | * @var mixed |
||
22 | */ |
||
23 | private $response; |
||
24 | |||
25 | /** |
||
26 | * Exception thrown during execution. |
||
27 | * |
||
28 | * @var Exception |
||
29 | */ |
||
30 | private $exception; |
||
31 | |||
32 | /** |
||
33 | * Routing information. |
||
34 | * |
||
35 | * @var RouteInfoInterface |
||
36 | */ |
||
37 | private $routeInfo; |
||
38 | |||
39 | 36 | public function __construct($name, $request, $response) |
|
45 | |||
46 | /** |
||
47 | * {@inheritDoc} |
||
48 | */ |
||
49 | 28 | public function getResponse() |
|
53 | |||
54 | /** |
||
55 | * {@inheritDoc} |
||
56 | */ |
||
57 | 36 | public function setResponse($response) |
|
61 | |||
62 | /** |
||
63 | * {@inheritDoc} |
||
64 | */ |
||
65 | 36 | public function setRequest($request) |
|
69 | |||
70 | /** |
||
71 | * {@inheritDoc} |
||
72 | */ |
||
73 | 28 | public function getRequest() |
|
77 | |||
78 | /** |
||
79 | * Route info getter. |
||
80 | * |
||
81 | * @return RouteInfoInterface |
||
82 | */ |
||
83 | 2 | public function getRouteInfo() |
|
87 | |||
88 | /** |
||
89 | * Route info setter. |
||
90 | * |
||
91 | * @param RouteInfoInterface $routerInfo Routing information. |
||
92 | */ |
||
93 | 22 | public function setRouteInfo(RouteInfoInterface $routerInfo) |
|
97 | |||
98 | /** |
||
99 | * Exception setter. |
||
100 | * |
||
101 | * @param Exception $exception Exception thrown during execution. |
||
102 | */ |
||
103 | 10 | public function setException(Exception $exception) |
|
107 | |||
108 | /** |
||
109 | * Exception getter. |
||
110 | * |
||
111 | * @return Exception |
||
112 | */ |
||
113 | 8 | public function getException() |
|
117 | } |
||
118 |