/** * Sets the maximum nesting level to at least a certain value. If the current value is * greater than the supplied level, the maximum nesting level is not changed. * * @param int $atLeastLevel */ public static function setMaximumDepthLevelAllowedAtLeast($atLeastLevel) { self::$maximumDepthLevelAllowed = max($atLeastLevel, self::$maximumDepthLevelAllowed); if (self::$maximumDepthLevelAllowed < 1) { self::$maximumDepthLevelAllowed = 1; } }