| 1 | <?php |
||
| 14 | class SerializerListener implements SubscribingHandlerInterface |
||
| 15 | { |
||
| 16 | |||
| 17 | /** @var Extractor */ |
||
| 18 | private $extractor; |
||
| 19 | |||
| 20 | 9 | public function __construct(Extractor $extractor) |
|
| 24 | |||
| 25 | /** {@inheritDoc} */ |
||
| 26 | 1 | public static function getSubscribingMethods(): array |
|
| 34 | |||
| 35 | /** |
||
| 36 | * @param object $entity Entity object |
||
| 37 | * @throws UnsupportedEntityException |
||
| 38 | */ |
||
| 39 | 9 | public function extract(JsonSerializationVisitor $visitor, $entity): array |
|
| 43 | |||
| 44 | 1 | private static function createSubscribingConfiguration(array $entities): array |
|
| 54 | } |
||
| 55 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.