public static function fromString($path)
    {
        $pathObject = static::factory()->create($path);
        if (!$pathObject instanceof AbsolutePathInterface) {
            throw new Exception\NonAbsolutePathException($pathObject);
        }

        return $pathObject;
    }
public static function fromString($path)
    {
        $pathObject = static::factory()->create($path);
        if (!$pathObject instanceof AbsolutePathInterface) {
            throw new Exception\NonAbsolutePathException($pathObject);
        }

        return $pathObject;
    }
public static function fromString ( $ path ) { $ pathObject = static :: factory ( ) -> create ( $ path ) ; if ( ! $ pathObject instanceof AbsolutePathInterface ) { throw new Exception \ NonAbsolutePathException ( $ pathObject ) ; } return $ pathObject ; }
Creates a new absolute path from its string representation.

@param string $path The string representation of the absolute path.

@return AbsolutePathInterface              The newly created absolute path.
@throws Exception\NonAbsolutePathException If the supplied string represents a non-absolute path.
Creates a new absolute path from its string representation .