src/MediaType.php
public function match(MediaType $mediaType)
    {
        return ($this->type == '*' && $this->subType == '*') ||
            ($this->type == $mediaType->getType() && $this->subType == $mediaType->getSubType()) ||
            ($this->type == $mediaType->getType() && $this->subType == '*');
    }
public function match(MediaType $mediaType)
    {
        return ($this->type == '*' && $this->subType == '*') ||
            ($this->type == $mediaType->getType() && $this->subType == $mediaType->getSubType()) ||
            ($this->type == $mediaType->getType() && $this->subType == '*');
    }
public function match ( MediaType $ mediaType ) { return ( $ this -> type == '*' && $ this -> subType == '*' ) || ( $ this -> type == $ mediaType -> getType ( ) && $ this -> subType == $ mediaType -> getSubType ( ) ) || ( $ this -> type == $ mediaType -> getType ( ) && $ this -> subType == '*' ) ; }
Checks whether the given media type would match

@param \PSX\Http\MediaType $mediaType
@return boolean
Checks whether the given media type would match