fix detach fail, marks
This commit is contained in:
22
common/models/Entity.php
Normal file
22
common/models/Entity.php
Normal file
@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
namespace common\models;
|
||||
|
||||
class Entity
|
||||
{
|
||||
|
||||
const ENTITY_TYPE_PROJECT = 1;
|
||||
const ENTITY_TYPE_TASK = 2;
|
||||
|
||||
/**
|
||||
* @return string[]
|
||||
*/
|
||||
public static function getEntityTypeList(): array
|
||||
{
|
||||
return [
|
||||
self::ENTITY_TYPE_PROJECT => "Проект",
|
||||
self::ENTITY_TYPE_TASK => "Задача",
|
||||
];
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user