Total Complexity | 3 |
Total Lines | 50 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
15 | class AnswerInlineQueryNormalizer implements NormalizerInterface |
||
16 | { |
||
17 | /** |
||
18 | * @var NormalizerInterface |
||
19 | */ |
||
20 | private $objectNormalizer; |
||
21 | |||
22 | /** |
||
23 | * AnswerInlineQueryNormalizer constructor. |
||
24 | * |
||
25 | * @param NormalizerInterface $objectNormalizer |
||
26 | */ |
||
27 | 120 | public function __construct(NormalizerInterface $objectNormalizer) |
|
30 | 120 | } |
|
31 | |||
32 | /** |
||
33 | * @param mixed $topic |
||
34 | * @param null $format |
||
|
|||
35 | * @param array $context |
||
36 | * |
||
37 | * @return array|bool|float|int|mixed|string |
||
38 | */ |
||
39 | 2 | public function normalize($topic, $format = null, array $context = []) |
|
53 | ); |
||
54 | } |
||
55 | |||
56 | /** |
||
57 | * @param mixed $data |
||
58 | * @param null $format |
||
59 | * |
||
60 | * @return bool |
||
61 | */ |
||
62 | 112 | public function supportsNormalization($data, $format = null): bool |
|
67 |