File: D:/HostingSpaces/debout/debout.nl/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 USP = 6;
const CONTENT_PERSONAL = 8;
const CONTENT_SLIDER = 9;
const QUOTE = 10;
const DOWNLOADS = 11;
const DOUBLE_IMAGE = 12;
/**
* Alias for clean code in the sections
*
* @return array
*/
public static function all() {
return ComponentTypes::getAsArray();
}
}