protected function getWeight($q)
    {
        $parts = $this->split($q, '=');

        $weight = $parts[1] ?? 1.0;

        return (float) $weight;
    }
protected function getWeight($q)
    {
        $parts = $this->split($q, '=');

        $weight = $parts[1] ?? 1.0;

        return (float) $weight;
    }
protected function getWeight ( $ q ) { $ parts = $ this -> split ( $ q , '=' ) ; $ weight = $ parts [ 1 ] ?? 1.0 ; return ( float ) $ weight ; }
Parse the relative quality factor and return its value.

@param string $q

@return float
Parse the relative quality factor and return its value .