public function parent($numLevels = null)
    {
        if (null === $numLevels) {
            $numLevels = 1;
        }

        return $this->createPath(
            array_merge(
                $this->atoms(),
                array_fill(0, $numLevels, static::PARENT_ATOM)
            ),
            $this instanceof AbsolutePathInterface,
            false
        );
    }
public function parent($numLevels = null)
    {
        if (null === $numLevels) {
            $numLevels = 1;
        }

        return $this->createPath(
            array_merge(
                $this->atoms(),
                array_fill(0, $numLevels, static::PARENT_ATOM)
            ),
            $this instanceof AbsolutePathInterface,
            false
        );
    }
public function parent ( $ numLevels = null ) { if ( null === $ numLevels ) { $ numLevels = 1 ; } return $ this -> createPath ( array_merge ( $ this -> atoms ( ) , array_fill ( 0 , $ numLevels , static :: PARENT_ATOM ) ) , $ this instanceof AbsolutePathInterface , false ) ; }
Get the parent of this path a specified number of levels up.

@param integer|null $numLevels The number of levels up. Defaults to 1.

@return PathInterface The parent of this path $numLevels up.
Get the parent of this path a specified number of levels up .