public function compareTypes(string $l, string $r)
    {
        $lq = $this->accept[$l] ?? 0;
        $rq = $this->accept[$r] ?? 0;

        return $lq === $rq ? -1 : ($lq < $rq ? 1 : -1);
    }
public function compareTypes(string $l, string $r)
    {
        $lq = $this->accept[$l] ?? 0;
        $rq = $this->accept[$r] ?? 0;

        return $lq === $rq ? -1 : ($lq < $rq ? 1 : -1);
    }
public function compareTypes ( string $ l , string $ r ) { $ lq = $ this -> accept [ $ l ] ?? 0 ; $ rq = $ this -> accept [ $ r ] ?? 0 ; return $ lq === $ rq ? - 1 : ( $ lq < $ rq ? 1 : - 1 ) ; }
Compare the types based on the priorty in the accept header. Aliases
for common types are supported.

@param string $l The left-hand side of the comparison. Should be a type
@param string $r The right-hand side of the comparison. Should be a type
Compare the types based on the priorty in the accept header . Aliases for common types are supported .