|
@@ 186-194 (lines=9) @@
|
| 183 |
|
* |
| 184 |
|
* @deprecated since 2.1, to be removed in 3.0. Use {@link self::enableMaxDepth()} instead. |
| 185 |
|
*/ |
| 186 |
|
public function setMaxDepth($maxDepth, $triggerDeprecation = true) |
| 187 |
|
{ |
| 188 |
|
if ($triggerDeprecation) { |
| 189 |
|
@trigger_error(sprintf('%s is deprecated since version 2.1 and will be removed in 3.0. Use %s::enabledMaxDepth() instead.', __METHOD__, __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($triggerDeprecation = true) |
| 204 |
|
{ |
| 205 |
|
if ($triggerDeprecation) { |
| 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 |
|
/** |
| 213 |
|
* @param bool $enabled |