32 lines
792 B
PHP
32 lines
792 B
PHP
<?php
|
|
|
|
namespace App\Services\Administrator;
|
|
|
|
class AdministratorNotificationService
|
|
{
|
|
public function __construct(
|
|
protected AdminNotificationSubjectService $subjectService,
|
|
protected AdminPrintRecipientService $printRecipientService,
|
|
) {}
|
|
|
|
public function notificationsAlertsData(): array
|
|
{
|
|
return $this->subjectService->alertsData();
|
|
}
|
|
|
|
public function saveNotificationSubjects(array $posted): array
|
|
{
|
|
return $this->subjectService->save($posted);
|
|
}
|
|
|
|
public function printNotificationRecipientsData(): array
|
|
{
|
|
return $this->printRecipientService->data();
|
|
}
|
|
|
|
public function savePrintNotificationRecipients(array $posted): array
|
|
{
|
|
return $this->printRecipientService->save($posted);
|
|
}
|
|
}
|