Baum\SetBuilder::getNextBound PHP Method

getNextBound() protected method

Return next index bound value for the given key (current scope identifier).
protected getNextBound ( string $key ) : integer
$key string
return integer
    protected function getNextBound($key)
    {
        if (false === array_key_exists($key, $this->bounds)) {
            $this->bounds[$key] = 0;
        }
        $this->bounds[$key] = $this->bounds[$key] + 1;
        return $this->bounds[$key];
    }