1 | <?php |
||
14 | class EnumHandler implements SubscribingHandlerInterface |
||
15 | { |
||
16 | private static $formats = [ |
||
17 | 'atol_client', |
||
18 | ]; |
||
19 | |||
20 | /** |
||
21 | * {@inheritdoc} |
||
22 | */ |
||
23 | 21 | public static function getSubscribingMethods() |
|
45 | |||
46 | /** |
||
47 | * @param VisitorInterface $visitor |
||
48 | * @param mixed $data |
||
49 | * @param array $type |
||
50 | * |
||
51 | * @throws \Paillechat\Enum\Exception\EnumException |
||
52 | * |
||
53 | * @return Enum |
||
54 | */ |
||
55 | 12 | public function deserialize(VisitorInterface $visitor, $data, array $type) |
|
69 | |||
70 | /** |
||
71 | * @param VisitorInterface $visitor |
||
72 | * @param Enum $enum |
||
73 | * @param array $type |
||
74 | * @param Context $context |
||
75 | * |
||
76 | * @throws \LogicException |
||
77 | * |
||
78 | * @return mixed |
||
79 | */ |
||
80 | 14 | public function serialize(VisitorInterface $visitor, Enum $enum, array $type, Context $context) |
|
92 | } |
||
93 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.