Total Complexity | 2 |
Total Lines | 30 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
12 | class GetCallByIdMapper implements ResponseInterface |
||
13 | { |
||
14 | /** |
||
15 | * @var JsonMapper |
||
16 | */ |
||
17 | protected $mapper; |
||
18 | |||
19 | /** |
||
20 | * CallByIdMapper constructor. |
||
21 | * @param JsonMapper $mapper |
||
22 | */ |
||
23 | public function __construct(JsonMapper $mapper) |
||
24 | { |
||
25 | $this->mapper = $mapper; |
||
26 | } |
||
27 | |||
28 | /** |
||
29 | * @see https://zvonok.com/pages/ru/guide/guide_api/#call_by_id |
||
30 | * |
||
31 | * @param string $json |
||
32 | * |
||
33 | * @return CallResultResponse |
||
34 | * @throws \JsonMapper_Exception |
||
35 | */ |
||
36 | public function map(string $json): CallResultResponse |
||
42 | } |
||
43 | } |
||
44 |