| 1 | <?php |
||
| 23 | class GetResponseEvent extends Event |
||
| 24 | { |
||
| 25 | /** |
||
| 26 | * @var Request |
||
| 27 | */ |
||
| 28 | protected $request; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @var Response |
||
| 32 | */ |
||
| 33 | protected $response; |
||
| 34 | |||
| 35 | /** |
||
| 36 | * The constructor class. |
||
| 37 | * |
||
| 38 | * @param Request $request Instance of api request. |
||
| 39 | */ |
||
| 40 | public function __construct(Request $request) |
||
| 44 | |||
| 45 | /** |
||
| 46 | * Getter for request. |
||
| 47 | * |
||
| 48 | * @return Request |
||
| 49 | */ |
||
| 50 | public function getRequest() |
||
| 54 | |||
| 55 | /** |
||
| 56 | * Getter for response. |
||
| 57 | * |
||
| 58 | * @return Response |
||
| 59 | */ |
||
| 60 | public function getResponse() |
||
| 64 | |||
| 65 | /** |
||
| 66 | * Setter for response. |
||
| 67 | * |
||
| 68 | * @param Response $response Instance of api response. |
||
| 69 | */ |
||
| 70 | public function setResponse(Response $response) |
||
| 74 | } |
||
| 75 |