1 | <?php |
||
4 | final class ParentNormalizerContext implements NormalizerContextInterface |
||
5 | { |
||
6 | private $root; |
||
7 | private $format; |
||
8 | private $parent; |
||
9 | /** @var int */ |
||
10 | private $level = 0; |
||
11 | |||
12 | 10 | public function __construct() |
|
15 | |||
16 | 9 | public function withRoot($root) |
|
24 | |||
25 | 1 | public function getRoot() |
|
29 | |||
30 | 9 | public function withFormat($format) |
|
38 | |||
39 | 1 | public function getFormat() |
|
43 | |||
44 | 9 | public function withParent($parent) |
|
53 | |||
54 | 1 | public function getParent() |
|
58 | |||
59 | 1 | public function getLevel() |
|
63 | } |
||
64 |