Total Complexity | 7 |
Total Lines | 47 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
14 | class UserNormalizer implements NormalizerInterface, NormalizerAwareInterface |
||
15 | { |
||
16 | use NormalizerAwareTrait; |
||
17 | |||
18 | /** |
||
19 | * @var TokenStorageInterface |
||
20 | */ |
||
21 | private $tokenStorage; |
||
22 | |||
23 | /** |
||
24 | * @param TokenStorageInterface $tokenStorage |
||
25 | */ |
||
26 | public function __construct(TokenStorageInterface $tokenStorage) |
||
27 | { |
||
28 | $this->tokenStorage = $tokenStorage; |
||
29 | } |
||
30 | |||
31 | /** |
||
32 | * {@inheritdoc} |
||
33 | */ |
||
34 | public function normalize($object, $format = null, array $context = []) |
||
53 | } |
||
54 | |||
55 | /** |
||
56 | * {@inheritdoc} |
||
57 | */ |
||
58 | public function supportsNormalization($data, $format = null) |
||
63 |