Total Complexity | 2 |
Total Lines | 27 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
11 | class AddCallMapper implements ResponseInterface |
||
12 | { |
||
13 | /** |
||
14 | * @var \JsonMapper |
||
15 | */ |
||
16 | protected $mapper; |
||
17 | |||
18 | /** |
||
19 | * CallByIdMapper constructor. |
||
20 | * @param \JsonMapper $mapper |
||
21 | */ |
||
22 | public function __construct(\JsonMapper $mapper) |
||
23 | { |
||
24 | $this->mapper = $mapper; |
||
25 | } |
||
26 | |||
27 | /** |
||
28 | * @param string $json |
||
29 | * |
||
30 | * @return AddCallResponse |
||
31 | * @throws \JsonMapper_Exception |
||
32 | */ |
||
33 | public function map(string $json): AddCallResponse |
||
38 | } |
||
39 | } |
||
40 |