Gets the normalization max depth.

@return int|null

@deprecated since version 2.1, to be removed in 3.0. Use {@link self::isMaxDepthEnabled()} instead
3102
public function getMaxDepth()
    {
        if (0 === func_num_args() || func_get_arg(0)) {
            @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);
        }

        return $this->maxDepth;
    }
855675
public function getMaxAge()
    {
        if ($header = $this->getHeader('Cache-Control')) {
            // s-max-age, then max-age, then Expires
            if ($age = $header->getDirective('s-maxage')) {
                return $age;
            }
            if ($age = $header->getDirective('max-age')) {
                return $age;
            }
        }

        if ($this->getHeader('Expires')) {
            return strtotime($this->getExpires()) - time();
        }

        return null;
    }
257586
public function getCondensed()
    {
        if ($this->version === 4) {
            return $this->value;
        }

        $addr = preg_replace('/(^|:)0+(\d)/', '\1\2', $this->getExpanded());

        if (preg_match_all('/(?:^|:)(?:0(?::|$))+/', $addr, $matches, PREG_OFFSET_CAPTURE)) {
            $max = 0;
            $pos = null;

            foreach ($matches[0] as $match) {
                if (strlen($match[0]) > $max) {
                    $max = mb_strlen($match[0]);
                    $pos = $match[1];
                }
            }

            $addr = substr_replace($addr, '::', $pos, $max);
        }

        return $addr;
    }
154409
private function getNormalityDeclaration()
    {

        $normality = $this->entity->normalityTags;

        // remove options we don't think this Repository needs to store
        unset( $normality['instancesMaxAllowed'] );
        unset( $normality['match'] );

        // we got a max instances allowed in normality tags
        $normality = json_encode( $normality );
        $normality = Php::varExport( $normality, true );

        $this->class->classComponents[] = new VariableDeclaration(
            'normality',
            new SFormatf( <<<'PHP'
                /**
                 * Normality tags from relation
                 * @var array
                 */
                protected $normality = %s;
PHP
                , $normality
            )
        );

    }
191332
public function maxRole()
    {
        $roles = $this->roles;
        $r = $roles->first();

        foreach ($roles as $role){
            if($role->order > $r->order)
                $r = $role;
        }

        return $r;
    }
1234768
public function getMaxSort()
    {
        if ($this->_max === null) {
            $this->_max = $this->owner->find()->andWhere($this->getCondition())->count() - 1;
        }
        return $this->_max;
    }
504106
public function maxNorm(): float
    {
        return array_reduce($this->toArray(), function (float $carry, float $value) {
            $value = abs($value);

            return $carry > $value ? $carry : $value;
        }, -INF);
    }
730234
public function max(){
		
		if($this->isEmpty()){
			throw new \UnderflowException(\get_called_class() . ' is empty');
		}
		
		$max = $this->front();
		
		for($i = 1, $l = $this->count(); $i < $l; ++$i){
			if(Number::greaterThan($this->_Arr[$i], $max)){
				$max = $this->_Arr[$i];
			}
		}
		
		return $max;
		
	}
1340532
public function GetMaxItem()
    {
        /** @var $oMaxItem null|TdbShopVat */
        $oMaxItem = null;
        $iPt = $this->getItemPointer();
        $this->GoToStart();
        while ($oItem = &$this->Next()) {
            if ($oItem->getTotalValue() > 0 && (is_null($oMaxItem) || $oItem->getTotalValue() > $oMaxItem->getTotalValue())) {
                $oMaxItem = $oItem;
            }
        }
        $this->setItemPointer($iPt);

        return $oMaxItem;
    }
295092
protected function getMaxPage()
    {
        $maxPageNumber = null;
        $maxPage       = null;
        foreach ($this->pages as $page) {
            $pageNumber = $page->getPageNumber();
            if ($maxPageNumber === null || $pageNumber > $maxPageNumber) {
                $maxPageNumber = $pageNumber;
                $maxPage       = $page;
            }
        }
        return $maxPage;
    }
82500
public function getRateRemainingLimit()
    {
        if (!$this->lastResponse) {
            return null;
        }

        /** @var Header $limit */
        $limit = $this->lastResponse->getHeader('X-Rate-Limit-Remaining');

        return $limit ? $limit->normalize() : null;
    }
719607
public function getMaxValue()
	{
		$retour = 0;
		foreach($this->listeValues as $indice => $value)
		{
			if(is_array($value))
			{
				for($i=0 ; $i<count($value) ; $i++)
				{
					if($value[$i]>$retour)
						$retour = $value[$i];
				}
			}
			else
			{
				if($value>$retour)
					$retour = $value;
			}
		}
		
		return $retour;
	}
441369
public function getDepthToOriginalContainer() {
		$depth = 0;
		$ancestry = $this->getAncestry();
		foreach ($ancestry as $a) {
			$ancestor = get_entity($a);
			if ($ancestor instanceof self) {
				$depth++;
			}
		}
		return $depth;
	}
646442
public function getMaxOccurs()
    {
        $maxOccurs = $this->getAttributeValue(AbstractAttributeHandler::ATTRIBUTE_MAX_OCCURS);
        if ($maxOccurs === AbstractAttributeHandler::VALUE_UNBOUNDED) {
            return $maxOccurs;
        }
        if (!is_numeric($maxOccurs)) {
            return AbstractAttributeHandler::DEFAULT_OCCURENCE_VALUE;
        }
        return (int) $maxOccurs;
    }
682036
public function getDepth() : ?float 
    {
        if ( ! $this->hasDepth()) {
            $this->setDepth($this->getDefaultDepth());
        }
        return $this->depth;
    }
795439
private function getTopNestingLevel()
    {
        $highestLevel = $this->getNestingLevel();
        foreach ($this->getChildren() as $child) {
            $childLevel = $child->getNestingLevel();
            if ($highestLevel < $childLevel) {
                $highestLevel = $childLevel;
            }
        }

        return $highestLevel;
    }
549680
public function getCurrentMax()
	{
		$max = 0;
		/* @var $node Node\NodeInterface */
		foreach ($this->array as $node) {
			$max = max($max, $node->getRightValue());
		}
		return $max;
	}