1 | <?php |
||
16 | abstract class Response extends Collector implements FinalCollectorInterface, BarRenderableInterface |
||
17 | { |
||
18 | |||
19 | /** |
||
20 | * The path in the final json |
||
21 | * @example |
||
22 | * path /aa/bb |
||
23 | * will be transformed to |
||
24 | * { |
||
25 | * aa : { |
||
26 | * bb: <VALUE OF RESOLVE> |
||
27 | * } |
||
28 | * } |
||
29 | * @return mixed |
||
30 | */ |
||
31 | 6 | public function getPath() |
|
35 | |||
36 | /** |
||
37 | * Fetch data |
||
38 | * @return void |
||
39 | */ |
||
40 | 10 | public function resolve() |
|
54 | |||
55 | 10 | public function getDataFields() |
|
61 | |||
62 | /** |
||
63 | * @return RendererInterface |
||
64 | * |
||
65 | * @throws \RuntimeException |
||
66 | */ |
||
67 | public function getRenderer() |
||
71 | |||
72 | /** |
||
73 | * @return int |
||
74 | */ |
||
75 | abstract public function getStatusCode(); |
||
76 | |||
77 | /** |
||
78 | * @return string |
||
79 | */ |
||
80 | abstract protected function getStatusText(); |
||
81 | |||
82 | /** |
||
83 | * @return string |
||
84 | */ |
||
85 | abstract protected function getCharset(); |
||
86 | |||
87 | /** |
||
88 | * @return int |
||
89 | */ |
||
90 | abstract protected function getMaxAge(); |
||
91 | |||
92 | /** |
||
93 | * @return int |
||
94 | */ |
||
95 | abstract protected function getExpires(); |
||
96 | |||
97 | /** |
||
98 | * @return \DateTime |
||
99 | */ |
||
100 | abstract protected function getLastModified(); |
||
101 | |||
102 | /** |
||
103 | * @return int |
||
104 | */ |
||
105 | abstract protected function getTtl(); |
||
106 | } |
||
107 |