Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 0 |
1 | <?php |
||
41 | protected function mapSubObjects(string $key, array $data): TelegramTypes |
||
42 | { |
||
43 | switch ($key) { |
||
44 | case 'parameters': |
||
45 | return new ResponseParameters($data, $this->logger); |
||
46 | } |
||
47 | |||
48 | // Return always null if none of the objects above matches |
||
49 | return parent::mapSubObjects($key, $data); |
||
50 | } |
||
51 | } |
||
52 |