add stickers logic
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
<?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') ?? ''));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user