HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
File: D:/HostingSpaces/SBogers10/ste.komma.pro/app/Components/ComponentType/ComponentTypes.php
<?php


namespace App\Components\ComponentType;

use Komma\KMS\Base\Enum;

/**
 * Class ComponentTypes
 *
 * All component types and their ids.
 * Notice: The ids don't correspond to database records anymore
 *
 * @package App\Components\ComponentType
 */
class ComponentTypes extends Enum
{
    const UNKNOWN = 0;
    const TEXT_IMAGE = 1;
    const DOUBLE_TEXT = 2;
    const VIDEO = 3;
    const TEXT = 4;
    const IMAGE = 5;
    const NAMED_TEXT = 6;
    const TEXT_USP = 7;
    const REFERENCES = 8;

    /**
     * Alias for code cleanness in the sections
     *
     * @return array
     */
    public static function all() {
        return ComponentTypes::getAsArray();
    }
}