1 | <?php |
||
15 | abstract class JmsSerializerContext |
||
16 | { |
||
17 | /** |
||
18 | * Serialization groups |
||
19 | * |
||
20 | * @var array |
||
21 | */ |
||
22 | private $groups; |
||
23 | |||
24 | /** |
||
25 | * Object version |
||
26 | * |
||
27 | * @var int |
||
28 | */ |
||
29 | private $version; |
||
30 | |||
31 | /** |
||
32 | * If we should serialize null values |
||
33 | * |
||
34 | * @var bool |
||
35 | */ |
||
36 | private $serializeNull = false; |
||
37 | |||
38 | /** |
||
39 | * If we should check depth |
||
40 | * |
||
41 | * @var bool |
||
42 | */ |
||
43 | private $enableMaxDepthChecks = false; |
||
44 | |||
45 | /** |
||
46 | * Extra attributes |
||
47 | * |
||
48 | * @var array |
||
49 | */ |
||
50 | private $attributes = []; |
||
51 | |||
52 | /** |
||
53 | * Constructor |
||
54 | * |
||
55 | * @param array $params |
||
56 | */ |
||
57 | public function __construct(array $params) |
||
81 | |||
82 | /** |
||
83 | * Get Groups |
||
84 | * |
||
85 | * @return array |
||
86 | */ |
||
87 | public function getGroups() |
||
91 | |||
92 | /** |
||
93 | * Get version |
||
94 | * |
||
95 | * @return int |
||
96 | */ |
||
97 | public function getVersion() |
||
101 | |||
102 | /** |
||
103 | * Get SerializeNull |
||
104 | * |
||
105 | * @return bool |
||
106 | */ |
||
107 | public function getSerializeNull() |
||
111 | |||
112 | /** |
||
113 | * Get enable max depth checks |
||
114 | * |
||
115 | * @return bool |
||
116 | */ |
||
117 | public function getEnableMaxDepthChecks() |
||
121 | |||
122 | /** |
||
123 | * Get Attributes |
||
124 | * |
||
125 | * @return array |
||
126 | */ |
||
127 | public function getAttributes() |
||
131 | } |
||
132 |