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() |
|
31 | |||
32 | /** |
||
33 | * @return NormalizerContextBuilderInterface |
||
34 | */ |
||
35 | 3 | public static function create(): NormalizerContextBuilderInterface |
|
39 | |||
40 | /** |
||
41 | * @deprecated |
||
42 | * |
||
43 | * @param string[] $groups |
||
44 | * |
||
45 | * @return NormalizerContextBuilderInterface |
||
46 | */ |
||
47 | 1 | public function setGroups(array $groups): NormalizerContextBuilderInterface |
|
53 | |||
54 | /** |
||
55 | * @param array $attributes |
||
56 | * |
||
57 | * @return NormalizerContextBuilderInterface |
||
58 | */ |
||
59 | 1 | public function setAttributes(array $attributes): NormalizerContextBuilderInterface |
|
60 | { |
||
61 | 1 | $this->attributes = $attributes; |
|
62 | |||
63 | 1 | return $this; |
|
64 | } |
||
65 | |||
66 | /** |
||
67 | * @param ServerRequestInterface|null $request |
||
68 | * |
||
69 | * @return NormalizerContextBuilderInterface |
||
70 | */ |
||
71 | 2 | public function setRequest(ServerRequestInterface $request = null): NormalizerContextBuilderInterface |
|
77 | |||
78 | /** |
||
79 | * @return NormalizerContextInterface |
||
80 | */ |
||
81 | 3 | public function getContext(): NormalizerContextInterface |
|
85 | } |
||
86 |
This property has been deprecated. The supplier of the class has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the property will be removed from the class and what other property to use instead.