public function withMaxPathLength(int $length): self
    {
        $state = clone $this;
        $state->_maxPathLength = $length;
        return $state;
    }
public function withMaxPathLength(int $length): self
    {
        $state = clone $this;
        $state->_maxPathLength = $length;
        return $state;
    }
public function withMaxPathLength ( int $ length ) : self { $ state = clone $ this ; $ state -> _maxPathLength = $ length ; return $ state ; }
Get self with max_path_length.

@param int $length
@return self
Get self with max_path_length .