| 1 | <?php |
||
| 8 | class CakeHttpFlowEvent extends BaseCakeEvent implements EventInterface |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * Representation of an outgoing, client-side request. |
||
| 12 | * |
||
| 13 | * @var mixed |
||
| 14 | */ |
||
| 15 | private $request; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * Representation of an outgoing, server-side response. |
||
| 19 | * |
||
| 20 | * @var mixed |
||
| 21 | */ |
||
| 22 | private $response; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * Exception thrown during execution. |
||
| 26 | * |
||
| 27 | * @var Exception |
||
| 28 | */ |
||
| 29 | private $exception; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Routing information. |
||
| 33 | * |
||
| 34 | * @var RouteInfoInterface |
||
| 35 | */ |
||
| 36 | private $routeInfo; |
||
| 37 | |||
| 38 | /** |
||
| 39 | * {@inheritDoc} |
||
| 40 | */ |
||
| 41 | 7 | public function __construct($name, $subject = null, $data = null) |
|
| 42 | { |
||
| 43 | 7 | $this->setName($name); |
|
| 44 | 7 | $this->data = $data; |
|
| 45 | 7 | $this->_subject = $subject; |
|
| 46 | 7 | } |
|
| 47 | |||
| 48 | /** |
||
| 49 | * {@inheritDoc} |
||
| 50 | */ |
||
| 51 | 7 | public function setName($name) |
|
| 55 | |||
| 56 | /** |
||
| 57 | * {@inheritDoc} |
||
| 58 | */ |
||
| 59 | 1 | public function getName() |
|
| 63 | |||
| 64 | /** |
||
| 65 | * {@inheritDoc} |
||
| 66 | */ |
||
| 67 | 1 | public function getResponse() |
|
| 71 | |||
| 72 | /** |
||
| 73 | * {@inheritDoc} |
||
| 74 | */ |
||
| 75 | 1 | public function setResponse($response) |
|
| 79 | |||
| 80 | /** |
||
| 81 | * {@inheritDoc} |
||
| 82 | */ |
||
| 83 | 1 | public function setRequest($request) |
|
| 87 | |||
| 88 | /** |
||
| 89 | * {@inheritDoc} |
||
| 90 | */ |
||
| 91 | 1 | public function getRequest() |
|
| 95 | |||
| 96 | /** |
||
| 97 | * {@inheritDoc} |
||
| 98 | */ |
||
| 99 | 1 | public function getRouteInfo() |
|
| 103 | |||
| 104 | /** |
||
| 105 | * {@inheritDoc} |
||
| 106 | */ |
||
| 107 | 1 | public function setRouteInfo(RouteInfoInterface $routerInfo) |
|
| 111 | |||
| 112 | /** |
||
| 113 | * {@inheritDoc} |
||
| 114 | */ |
||
| 115 | 1 | public function setException(Exception $exception) |
|
| 119 | |||
| 120 | /** |
||
| 121 | * {@inheritDoc} |
||
| 122 | */ |
||
| 123 | 1 | public function getException() |
|
| 127 | |||
| 128 | /** |
||
| 129 | * {@inheritDoc} |
||
| 130 | */ |
||
| 131 | 1 | public function stopPropagation($flag = true) |
|
| 135 | } |
||
| 136 |