1 | <?php |
||
9 | final class NormalizerContext implements NormalizerContextInterface |
||
10 | { |
||
11 | /** |
||
12 | * @var string[] |
||
13 | */ |
||
14 | private $groups = []; |
||
15 | |||
16 | /** |
||
17 | * @var ServerRequestInterface|null |
||
18 | */ |
||
19 | private $request; |
||
20 | |||
21 | /** |
||
22 | * @var object|string|null |
||
23 | */ |
||
24 | private $role; |
||
25 | |||
26 | /** |
||
27 | * @param string[] $groups |
||
28 | * @param ServerRequestInterface|null $request |
||
29 | * @param object|string|null $role |
||
30 | */ |
||
31 | 2 | public function __construct(array $groups = [], ServerRequestInterface $request = null, $role = null) |
|
37 | |||
38 | /** |
||
39 | * @return string[] |
||
40 | */ |
||
41 | 2 | public function getGroups(): array |
|
45 | |||
46 | /** |
||
47 | * @return ServerRequestInterface|null |
||
48 | */ |
||
49 | 2 | public function getRequest() |
|
53 | |||
54 | /** |
||
55 | * @return object|string|null |
||
56 | */ |
||
57 | public function getRole() |
||
61 | } |
||
62 |