public function withoutRootLabel(): self
    {
        if ('' !== reset($this->labels)) {
            return $this;
        }

        $labels = $this->labels;
        array_shift($labels);

        return self::createFromLabels($labels);
    }
public function withoutRootLabel(): self
    {
        if ('' !== reset($this->labels)) {
            return $this;
        }

        $labels = $this->labels;
        array_shift($labels);

        return self::createFromLabels($labels);
    }
public function withoutRootLabel ( ) : self { if ( '' !== reset ( $ this -> labels ) ) { return $ this ; } $ labels = $ this -> labels ; array_shift ( $ labels ) ; return self :: createFromLabels ( $ labels ) ; }
Returns an instance without its Root label.

@see https://tools.ietf.org/html/rfc3986#section-3.2.2
Returns an instance without its Root label .