2023-10-06 00:37:46 +03:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace common\models;
|
|
|
|
|
|
|
|
class Entity
|
|
|
|
{
|
|
|
|
|
|
|
|
const ENTITY_TYPE_PROJECT = 1;
|
|
|
|
const ENTITY_TYPE_TASK = 2;
|
|
|
|
|
2024-02-12 22:56:40 +03:00
|
|
|
const ENTITY_TYPE_REQUEST = 3;
|
|
|
|
|
2023-10-06 00:37:46 +03:00
|
|
|
/**
|
|
|
|
* @return string[]
|
|
|
|
*/
|
|
|
|
public static function getEntityTypeList(): array
|
|
|
|
{
|
|
|
|
return [
|
|
|
|
self::ENTITY_TYPE_PROJECT => "Проект",
|
|
|
|
self::ENTITY_TYPE_TASK => "Задача",
|
2024-02-12 22:56:40 +03:00
|
|
|
self::ENTITY_TYPE_REQUEST => "Запрос на создание проекта",
|
2023-10-06 00:37:46 +03:00
|
|
|
];
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|