| Total Complexity | 8 |
| Total Lines | 79 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | final class NormalizerContext implements NormalizerContextInterface |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @deprecated |
||
| 14 | * |
||
| 15 | * @var string[] |
||
| 16 | */ |
||
| 17 | private $groups = []; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @var ServerRequestInterface|null |
||
| 21 | */ |
||
| 22 | private $request; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @var array |
||
| 26 | */ |
||
| 27 | private $attributes; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @param string[] $groups |
||
| 31 | */ |
||
| 32 | public function __construct(array $groups = [], ServerRequestInterface $request = null, array $attributes = []) |
||
| 41 | 3 | } |
|
| 42 | 3 | ||
| 43 | 3 | /** |
|
| 44 | * @deprecated |
||
| 45 | * |
||
| 46 | * @return string[] |
||
| 47 | */ |
||
| 48 | public function getGroups(): array |
||
| 49 | { |
||
| 50 | 2 | return $this->groups; |
|
| 51 | } |
||
| 52 | 2 | ||
| 53 | /** |
||
| 54 | * @return ServerRequestInterface|null |
||
| 55 | */ |
||
| 56 | public function getRequest() |
||
| 59 | } |
||
| 60 | 2 | ||
| 61 | public function getAttributes(): array |
||
| 64 | } |
||
| 65 | |||
| 66 | 3 | /** |
|
| 67 | * @param mixed $default |
||
| 68 | 3 | * |
|
| 69 | * @return mixed |
||
| 70 | */ |
||
| 71 | public function getAttribute(string $name, $default = null) |
||
| 78 | } |
||
| 79 | 2 | ||
| 80 | 1 | /** |
|
| 81 | * @param mixed $value |
||
| 82 | */ |
||
| 83 | 1 | public function withAttribute(string $name, $value): NormalizerContextInterface |
|
| 91 |