yupe\components\ContentType::getTypes PHP Метод

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

Функция возвращающая все типы контента:
public static getTypes ( ) : mixed
Результат mixed все типы контента
    public static function getTypes()
    {
        return [self::TYPE_HTML => 'Content-type: text/html', self::TYPE_TEXT => 'Content-type: text/plain', self::TYPE_JSON => 'Content-type: application/json', self::TYPE_JS => 'Content-type: application/javascript', self::TYPE_XML => 'Content-type: application/xml', self::TYPE_RSS => 'Content-type: application/rss+xml', self::TYPE_ATOM => 'Content-type: application/atom+xml', self::TYPE_ARCH_ZIP => 'Content-type: application/zip', self::TYPE_ARCH_RAR => 'Content-type: application/x-rar', self::TYPE_ARCH_TAR => 'Content-type: application/x-tar', self::TYPE_ARCH_GZIP => 'Content-type: application/gzip'];
    }