| 1 | <?php |
||
| 11 | final class Serializer implements SerializerInterface |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @var NormalizerInterface |
||
| 15 | */ |
||
| 16 | private $normalizer; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @var EncoderInterface |
||
| 20 | */ |
||
| 21 | private $encoder; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @param NormalizerInterface $normalizer |
||
| 25 | * @param EncoderInterface $encoder |
||
| 26 | */ |
||
| 27 | public function __construct(NormalizerInterface $normalizer, EncoderInterface $encoder) |
||
| 32 | 2 | ||
| 33 | 2 | /** |
|
| 34 | * @param object $object |
||
| 35 | * @param string $contentType |
||
| 36 | * @param NormalizerContextInterface $context |
||
| 37 | * |
||
| 38 | * @return string |
||
| 39 | */ |
||
| 40 | public function serialize($object, string $contentType, NormalizerContextInterface $context = null): string |
||
| 44 | } |
||
| 45 |
This check looks for function calls that miss required arguments.