@@ 195-203 (lines=9) @@ | ||
192 | * |
|
193 | * @deprecated since 2.1, to be removed in 3.0. Use {@link self::enableMaxDepth()} and {@link self::disableMaxDepth()} instead |
|
194 | */ |
|
195 | public function setMaxDepth($maxDepth) |
|
196 | { |
|
197 | if (1 === func_num_args() || func_get_arg(1)) { |
|
198 | @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); |
|
199 | } |
|
200 | $this->maxDepth = $maxDepth; |
|
201 | ||
202 | return $this; |
|
203 | } |
|
204 | ||
205 | /** |
|
206 | * Gets the normalization max depth. |
|
@@ 212-219 (lines=8) @@ | ||
209 | * |
|
210 | * @deprecated since version 2.1, to be removed in 3.0. Use {@link self::isMaxDepthEnabled()} instead |
|
211 | */ |
|
212 | public function getMaxDepth() |
|
213 | { |
|
214 | if (0 === func_num_args() || func_get_arg(0)) { |
|
215 | @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); |
|
216 | } |
|
217 | ||
218 | return $this->maxDepth; |
|
219 | } |
|
220 | ||
221 | public function enableMaxDepth() |
|
222 | { |