'Junior', self::LEVEL_MIDDLE => 'Middle', self::LEVEL_MIDDLE_PLUS => 'Middle+', self::LEVEL_SENIOR => 'Senior', ]; } public static function getLevelLabel(int $level): string { return self::getLevelList()[$level]; } /** * {@inheritdoc} */ public static function tableName() { return 'test_task'; } /** * {@inheritdoc} */ public function rules() { return [ [['level', 'status', 'description', 'link'], 'required'], [['level', 'status'], 'integer'], [['description'], 'string', 'max' => 500], [['link'], 'string', 'max' => 255], ]; } /** * {@inheritdoc} */ public function attributeLabels() { return [ 'id' => 'ID', 'description' => 'Описание', 'link' => 'Ссылка', 'level' => 'Уровень', 'status' => 'Статус', ]; } }