1 | <?php |
||
10 | abstract class Abstraction |
||
11 | { |
||
12 | private $response; |
||
13 | private $request; |
||
14 | private $bootstrap; |
||
15 | |||
16 | /** |
||
17 | * @var \Exception |
||
18 | */ |
||
19 | private $exception; |
||
20 | |||
21 | /** |
||
22 | * @param Bootstrap $bootstrap |
||
23 | * @return $this |
||
24 | */ |
||
25 | 5 | public function setBootstrap(Bootstrap $bootstrap) |
|
30 | |||
31 | /** |
||
32 | * @return Bootstrap |
||
33 | * @throws Exception |
||
34 | */ |
||
35 | 4 | public function getBootstrap() |
|
42 | |||
43 | /** |
||
44 | * @param Response $response |
||
45 | * @return $this |
||
46 | */ |
||
47 | 3 | public function setResponse(Response $response) |
|
52 | |||
53 | /** |
||
54 | * @return Response |
||
55 | * @throws Exception |
||
56 | */ |
||
57 | 3 | public function getResponse() |
|
64 | |||
65 | /** |
||
66 | * @param Request $request |
||
67 | * @return $this |
||
68 | */ |
||
69 | 3 | public function setRequest(Request $request) |
|
74 | |||
75 | /** |
||
76 | * @return Request |
||
77 | * @throws Exception |
||
78 | */ |
||
79 | 2 | public function getRequest() |
|
86 | |||
87 | 5 | public function setException(\Exception $e) |
|
92 | |||
93 | 3 | public function getException() |
|
97 | |||
98 | /** |
||
99 | * @return $this |
||
100 | */ |
||
101 | abstract public function handle(); |
||
102 | |||
103 | /** |
||
104 | * @return bool |
||
105 | */ |
||
106 | abstract public function canHandle(); |
||
107 | } |
||
108 |