Total Complexity | 6 |
Total Lines | 57 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
9 | final class NormalizerContextBuilder implements NormalizerContextBuilderInterface |
||
10 | { |
||
11 | /** |
||
12 | * @deprecated |
||
13 | * |
||
14 | * @var string[] |
||
15 | */ |
||
16 | private $groups = []; |
||
17 | |||
18 | /** |
||
19 | * @var array |
||
20 | */ |
||
21 | private $attributes = []; |
||
22 | |||
23 | /** |
||
24 | * @var ServerRequestInterface|null |
||
25 | */ |
||
26 | private $request; |
||
27 | |||
28 | 3 | private function __construct() |
|
30 | 3 | } |
|
31 | |||
32 | public static function create(): NormalizerContextBuilderInterface |
||
33 | { |
||
34 | return new self(); |
||
35 | 3 | } |
|
36 | |||
37 | 3 | /** |
|
38 | * @deprecated |
||
39 | * |
||
40 | * @param string[] $groups |
||
41 | */ |
||
42 | public function setGroups(array $groups): NormalizerContextBuilderInterface |
||
43 | { |
||
44 | $this->groups = $groups; |
||
|
|||
45 | |||
46 | return $this; |
||
47 | 1 | } |
|
48 | |||
49 | 1 | public function setAttributes(array $attributes): NormalizerContextBuilderInterface |
|
50 | { |
||
51 | 1 | $this->attributes = $attributes; |
|
52 | |||
53 | return $this; |
||
54 | } |
||
55 | |||
56 | public function setRequest(ServerRequestInterface $request = null): NormalizerContextBuilderInterface |
||
61 | 1 | } |
|
62 | |||
63 | 1 | public function getContext(): NormalizerContextInterface |
|
66 | } |
||
67 | } |
||
68 |