1 | <?php |
||
14 | class RequestFactory implements FactoryInterface |
||
15 | { |
||
16 | /** @var DispatcherInterface */ |
||
17 | private $dispatcher; |
||
18 | |||
19 | /** |
||
20 | * @return mixed|Request |
||
21 | */ |
||
22 | public function create() |
||
33 | |||
34 | /** |
||
35 | * @param DispatcherInterface $dispatcher |
||
36 | */ |
||
37 | public function overwriteDispatcher(DispatcherInterface $dispatcher) |
||
41 | |||
42 | /** |
||
43 | * @return DispatcherInterface |
||
44 | */ |
||
45 | protected function getDispatcher() |
||
55 | |||
56 | /** |
||
57 | * @return DispatcherInterface |
||
58 | */ |
||
59 | protected function getNewDispatcher() |
||
63 | |||
64 | /** |
||
65 | * @return array|HeaderLineInterface[] |
||
66 | */ |
||
67 | protected function getDefaultHeaderLines() |
||
73 | |||
74 | /** |
||
75 | * @return array |
||
76 | */ |
||
77 | protected function getDefaultRawHeaderLine() |
||
81 | |||
82 | /** |
||
83 | * @return array|OptionInterface[] |
||
84 | */ |
||
85 | protected function getDefaultOptions() |
||
91 | |||
92 | /** |
||
93 | * @return array |
||
94 | */ |
||
95 | protected function getDefaultRawOptions() |
||
105 | |||
106 | /** |
||
107 | * @param array|HeaderLineInterface[] $headerLines |
||
108 | * @param Request $request |
||
109 | * @return Request |
||
110 | */ |
||
111 | private function addDefaultHeaderLines(array $headerLines, Request $request) |
||
120 | |||
121 | /** |
||
122 | * @param array $headerLines |
||
123 | * @param Request $request |
||
124 | * @return Request |
||
125 | */ |
||
126 | private function addDefaultRawHeaderLines(array $headerLines, Request $request) |
||
135 | |||
136 | /** |
||
137 | * @param array|OptionInterface[] $options |
||
138 | * @param Request $request |
||
139 | * @return Request |
||
140 | */ |
||
141 | private function addDefaultOptions(array $options, Request $request) |
||
150 | |||
151 | /** |
||
152 | * @param array $options |
||
153 | * @param Request $request |
||
154 | * @return Request |
||
155 | */ |
||
156 | private function addDefaultRawOptions(array $options, Request $request) |
||
165 | } |
||
166 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.