public function toAbsolute()
    {
        if (!$this->hasDrive()) {
            throw new InvalidPathStateException(
                'Cannot convert relative Windows path to absolute without a ' .
                    'drive specifier.'
            );
        }

        return $this->createPathFromDriveAndAtoms(
            $this->atoms(),
            $this->drive(),
            true,
            false,
            false
        );
    }
public function toAbsolute()
    {
        if (!$this->hasDrive()) {
            throw new InvalidPathStateException(
                'Cannot convert relative Windows path to absolute without a ' .
                    'drive specifier.'
            );
        }

        return $this->createPathFromDriveAndAtoms(
            $this->atoms(),
            $this->drive(),
            true,
            false,
            false
        );
    }
public function toAbsolute ( ) { if ( ! $ this -> hasDrive ( ) ) { throw new InvalidPathStateException ( 'Cannot convert relative Windows path to absolute without a ' . 'drive specifier.' ) ; } return $ this -> createPathFromDriveAndAtoms ( $ this -> atoms ( ) , $ this -> drive ( ) , true , false , false ) ; }
Get an absolute version of this path.

If this path is relative, a new absolute path with equivalent atoms will
be returned. Otherwise, this path will be retured unaltered.

@return AbsolutePathInterface     An absolute version of this path.
@throws InvalidPathStateException If absolute conversion is not possible for this path.
Get an absolute version of this path .