public function asString(): string
    {
        $parts = [];
        foreach ($this->acceptables as $acceptable => $priority) {
            if (1.0 === $priority) {
                $parts[] = $acceptable;
            } else {
                $parts[] = $acceptable . ';q=' . $priority;
            }
        }

        return join(',', $parts);
    }
public function asString(): string
    {
        $parts = [];
        foreach ($this->acceptables as $acceptable => $priority) {
            if (1.0 === $priority) {
                $parts[] = $acceptable;
            } else {
                $parts[] = $acceptable . ';q=' . $priority;
            }
        }

        return join(',', $parts);
    }
public function asString ( ) : string { $ parts = [ ] ; foreach ( $ this -> acceptables as $ acceptable => $ priority ) { if ( 1.0 === $ priority ) { $ parts [ ] = $ acceptable ; } else { $ parts [ ] = $ acceptable . ';q=' . $ priority ; } } return join ( ',' , $ parts ) ; }
returns current list as string

@return  string
returns current list as string