| Total Complexity | 7 |
| Total Lines | 47 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| 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 | 19 | public function __construct(TokenStorageInterface $tokenStorage) |
|
| 27 | { |
||
| 28 | 19 | $this->tokenStorage = $tokenStorage; |
|
| 29 | 19 | } |
|
| 30 | |||
| 31 | /** |
||
| 32 | * {@inheritdoc} |
||
| 33 | */ |
||
| 34 | 16 | public function normalize($object, $format = null, array $context = []) |
|
| 53 | } |
||
| 54 | |||
| 55 | /** |
||
| 56 | * {@inheritdoc} |
||
| 57 | */ |
||
| 58 | 16 | public function supportsNormalization($data, $format = null) |
|
| 63 |