| Total Complexity | 3 |
| Total Lines | 42 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 12 | class SetMyCommandsNormalizer implements NormalizerInterface |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @var NormalizerInterface |
||
| 16 | */ |
||
| 17 | private $objectNormalizer; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * JsonSerializableNormalizer constructor. |
||
| 21 | */ |
||
| 22 | 303 | public function __construct(NormalizerInterface $objectNormalizer) |
|
| 23 | { |
||
| 24 | 303 | $this->objectNormalizer = $objectNormalizer; |
|
| 25 | 303 | } |
|
| 26 | |||
| 27 | /** |
||
| 28 | * @param SetMyCommandsMethod $topic |
||
| 29 | * @param null $format |
||
|
|
|||
| 30 | * |
||
| 31 | * @throws ExceptionInterface |
||
| 32 | * |
||
| 33 | * @return array|bool|false|float|int|string |
||
| 34 | */ |
||
| 35 | 3 | public function normalize($topic, $format = null, array $context = []) |
|
| 45 | } |
||
| 46 | |||
| 47 | /** |
||
| 48 | * @param mixed $data |
||
| 49 | * @param null $format |
||
| 50 | */ |
||
| 51 | 300 | public function supportsNormalization($data, $format = null): bool |
|
| 56 |