Files
alrahma_sunday_school_api/app/Services/School/SemesterSelectionService.php
T
2026-03-11 17:53:15 -04:00

24 lines
495 B
PHP

<?php
namespace App\Services\School;
use App\Models\Configuration;
class SemesterSelectionService
{
public function selectedTeacherSemester(): string
{
$configSemester = trim((string) (Configuration::getConfig('semester') ?? ''));
if ($configSemester !== '') {
return $this->normalize($configSemester);
}
return 'Fall';
}
private function normalize(string $value): string
{
return ucfirst(strtolower($value));
}
}