2024-05-17 18:46:12 +04:00
|
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace App\Enums;
|
|
|
|
|
|
|
|
|
|
enum ScoreEnum: string
|
|
|
|
|
{
|
2024-05-27 16:57:28 +04:00
|
|
|
|
case WithoutScore = 'Без оценки';
|
2024-05-17 18:46:12 +04:00
|
|
|
|
case Two = '2';
|
|
|
|
|
case Three = '3';
|
|
|
|
|
case Four = '4';
|
|
|
|
|
case Five = '5';
|
|
|
|
|
case Absent = 'Н';
|
|
|
|
|
case Sick = 'Б';
|
2024-06-23 17:02:18 +04:00
|
|
|
|
|
|
|
|
|
public static function getNumScores(): array
|
|
|
|
|
{
|
|
|
|
|
return [self::Two, self::Three, self::Four, self::Five];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static function getDebtScores(): array
|
|
|
|
|
{
|
|
|
|
|
return [self::Absent, self::Sick];
|
|
|
|
|
}
|
2024-05-17 18:46:12 +04:00
|
|
|
|
}
|