@@ 8-47 (lines=40) @@ | ||
5 | use PhpJsonRpc\Client\ResponseParser; |
|
6 | use PhpJsonRpc\Common\Interceptor\AbstractContainer; |
|
7 | ||
8 | class ParserContainer extends AbstractContainer |
|
9 | { |
|
10 | /** |
|
11 | * @var ResponseParser |
|
12 | */ |
|
13 | private $parser; |
|
14 | ||
15 | /** |
|
16 | * @var array |
|
17 | */ |
|
18 | private $value; |
|
19 | ||
20 | /** |
|
21 | * ParseContainer constructor. |
|
22 | * |
|
23 | * @param ResponseParser $parser |
|
24 | * @param array $value |
|
25 | */ |
|
26 | public function __construct(ResponseParser $parser, array $value) |
|
27 | { |
|
28 | $this->parser = $parser; |
|
29 | $this->value = $value; |
|
30 | } |
|
31 | ||
32 | /** |
|
33 | * @return ResponseParser |
|
34 | */ |
|
35 | public function getParser(): ResponseParser |
|
36 | { |
|
37 | return $this->parser; |
|
38 | } |
|
39 | ||
40 | /** |
|
41 | * @return array |
|
42 | */ |
|
43 | public function getValue(): array |
|
44 | { |
|
45 | return $this->value; |
|
46 | } |
|
47 | } |
|
48 |
@@ 8-47 (lines=40) @@ | ||
5 | use PhpJsonRpc\Common\Interceptor\AbstractContainer; |
|
6 | use PhpJsonRpc\Server\RequestParser; |
|
7 | ||
8 | class ParserContainer extends AbstractContainer |
|
9 | { |
|
10 | /** |
|
11 | * @var RequestParser |
|
12 | */ |
|
13 | private $parser; |
|
14 | ||
15 | /** |
|
16 | * @var mixed |
|
17 | */ |
|
18 | private $value; |
|
19 | ||
20 | /** |
|
21 | * PreParseContainer constructor. |
|
22 | * |
|
23 | * @param RequestParser $parser |
|
24 | * @param mixed $value |
|
25 | */ |
|
26 | public function __construct(RequestParser $parser, $value) |
|
27 | { |
|
28 | $this->parser = $parser; |
|
29 | $this->value = $value; |
|
30 | } |
|
31 | ||
32 | /** |
|
33 | * @return RequestParser |
|
34 | */ |
|
35 | public function getParser(): RequestParser |
|
36 | { |
|
37 | return $this->parser; |
|
38 | } |
|
39 | ||
40 | /** |
|
41 | * @return mixed |
|
42 | */ |
|
43 | public function getValue() |
|
44 | { |
|
45 | return $this->value; |
|
46 | } |
|
47 | } |
|
48 |