@@ 186-194 (lines=9) @@ | ||
183 | * |
|
184 | * @deprecated since 2.1, to be removed in 3.0. Use {@link self::enableMaxDepth()} and {@link self::disableMaxDepth()} instead. |
|
185 | */ |
|
186 | public function setMaxDepth($maxDepth) |
|
187 | { |
|
188 | if (1 === func_num_args() || func_get_arg(1)) { |
|
189 | @trigger_error(sprintf('%s is deprecated since version 2.1 and will be removed in 3.0. Use %s::enableMaxDepth() and %s::disableMaxDepth() instead.', __METHOD__, __CLASS__, __CLASS__), E_USER_DEPRECATED); |
|
190 | } |
|
191 | $this->maxDepth = $maxDepth; |
|
192 | ||
193 | return $this; |
|
194 | } |
|
195 | ||
196 | /** |
|
197 | * Gets the normalization max depth. |
|
@@ 203-210 (lines=8) @@ | ||
200 | * |
|
201 | * @deprecated since version 2.1, to be removed in 3.0. Use {@link self::isMaxDepthEnabled()} instead. |
|
202 | */ |
|
203 | public function getMaxDepth() |
|
204 | { |
|
205 | if (0 === func_num_args() || func_get_arg(0)) { |
|
206 | @trigger_error(sprintf('%s is deprecated since version 2.1 and will be removed in 3.0. Use %s::isMaxDepthEnabled() instead.', __METHOD__, __CLASS__), E_USER_DEPRECATED); |
|
207 | } |
|
208 | ||
209 | return $this->maxDepth; |
|
210 | } |
|
211 | ||
212 | public function enableMaxDepth() |
|
213 | { |