| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- <?php
- namespace App\Notifications\Push\Cliente\Agendamento;
- use App\Enums\PushNotificationCategoryEnum;
- use App\Enums\PushNotificationTargetEnum;
- use App\Notifications\Push\BasePushNotification;
- use Illuminate\Database\Eloquent\Collection;
- class PrestadorRecusouPush extends BasePushNotification
- {
- public function __construct(
- private readonly string $providerName,
- ) {}
- public function label(): string
- {
- return 'client_provider_refused';
- }
- public function title(): string
- {
- return 'Agendamento recusado';
- }
- public function body(): string
- {
- return "{$this->providerName} recusou seu agendamento.";
- }
- public function target(): PushNotificationTargetEnum
- {
- return PushNotificationTargetEnum::CLIENTE;
- }
- public function category(): PushNotificationCategoryEnum
- {
- return PushNotificationCategoryEnum::AGENDA;
- }
- public function eligibleUsers(): Collection
- {
- return new Collection();
- }
- public function notificationCooldownDays(): int
- {
- return 0;
- }
- public function categoryCooldownDays(): int
- {
- return 0;
- }
- }
|