1 | <?php |
||
14 | class Server implements ServerInterface |
||
15 | { |
||
16 | /** |
||
17 | * @var RequestParserInterface |
||
18 | */ |
||
19 | private $requestParser; |
||
20 | |||
21 | /** |
||
22 | * @var MethodDispatcherInterface |
||
23 | */ |
||
24 | private $methodDispatcher; |
||
25 | |||
26 | /** |
||
27 | * @var ResponseSerializerInterface |
||
28 | */ |
||
29 | private $responseSerializer; |
||
30 | /** |
||
31 | * @var ErrorResponseFactory |
||
32 | */ |
||
33 | private $errorResponseFactory; |
||
34 | |||
35 | /** |
||
36 | * Constructor. |
||
37 | * |
||
38 | * @param RequestParserInterface $requestParser |
||
39 | * @param MethodDispatcherInterface $methodDispatcher |
||
40 | * @param ResponseSerializerInterface $responseSerializer |
||
41 | * @param ErrorResponseFactory $errorResponseFactory |
||
42 | */ |
||
43 | public function __construct( |
||
54 | |||
55 | /** |
||
56 | * {@inheritdoc} |
||
57 | */ |
||
58 | public function handle($requestContent) |
||
77 | } |
||
78 |