Visitor::accepts PHP Метод

accepts() публичный статический Метод

Returns whether a specified MIME type is accepted by the visitor's browser
public static accepts ( string $type ) : boolean
$type string MIME type like "text/html"
Результат boolean
    public static function accepts($type)
    {
        return static::acceptance($type) > 0;
    }