public function convertToFull($fallbackBase)
    {
        $this->encode();
        if ($this->validate()) {
            return $this->uri;
        } elseif (strpos($this->uri, '/') === 0) {
            $relative = $this->uri;
            $this->uri = $fallbackBase;
            return $this->base() . $relative;
        }
        throw new \InvalidArgumentException("Invalid URI `$this->uri`");
    }
public function convertToFull($fallbackBase)
    {
        $this->encode();
        if ($this->validate()) {
            return $this->uri;
        } elseif (strpos($this->uri, '/') === 0) {
            $relative = $this->uri;
            $this->uri = $fallbackBase;
            return $this->base() . $relative;
        }
        throw new \InvalidArgumentException("Invalid URI `$this->uri`");
    }
public function convertToFull ( $ fallbackBase ) { $ this -> encode ( ) ; if ( $ this -> validate ( ) ) { return $ this -> uri ; } elseif ( strpos ( $ this -> uri , '/' ) === 0 ) { $ relative = $ this -> uri ; $ this -> uri = $ fallbackBase ; return $ this -> base ( ) . $ relative ; } throw new \ InvalidArgumentException ( "Invalid URI `$this->uri`" ) ; }
Convert relative to full

@param string $fallbackBase
@return string
Convert relative to full