| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- <?php
- namespace App\Notifications\Push\Prestador\Agendamento;
- use App\Enums\PushNotificationCategoryEnum;
- use App\Enums\PushNotificationTargetEnum;
- use App\Notifications\Push\BasePushNotification;
- use Illuminate\Database\Eloquent\Collection;
- class ClienteCancelouPush extends BasePushNotification
- {
- public function __construct(
- private readonly string $clientName,
- ) {}
- public function label(): string
- {
- return 'provider_client_cancelled';
- }
- public function title(): string
- {
- return 'Agendamento cancelado!';
- }
- public function body(): string
- {
- return "{$this->clientName} cancelou seu agendamento.";
- }
- public function target(): PushNotificationTargetEnum
- {
- return PushNotificationTargetEnum::PRESTADOR;
- }
- 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;
- }
- }
|