19 lines
387 B
PHP
19 lines
387 B
PHP
<?php
|
|
|
|
namespace App\Services\Reports\Stickers;
|
|
|
|
use App\Models\Configuration;
|
|
|
|
class StickerContextService
|
|
{
|
|
public function schoolYear(?string $override = null): string
|
|
{
|
|
$override = trim((string) $override);
|
|
if ($override !== '') {
|
|
return $override;
|
|
}
|
|
|
|
return trim((string) (Configuration::getConfig('school_year') ?? ''));
|
|
}
|
|
}
|