File: D:/HostingSpaces/SBogers10/wingssprayer.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 DUPLEX = 6;
const SLOGAN = 7;
const EMPLOYEES = 8;
const TROPHIES = 9;
const INTRO = 10;
const QUOTE = 11;
const DOUBLEUSP = 12;
/**
* Alias for code cleanness in the sections
*
* @return array
*/
public static function all() {
return ComponentTypes::getAsArray();
}
}