CodigoNaoPreenchidoPush.php 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <?php
  2. namespace App\Notifications\Push\Prestador\Agendamento;
  3. use App\Enums\PushNotificationCategoryEnum;
  4. use App\Enums\PushNotificationTargetEnum;
  5. use App\Notifications\Push\BasePushNotification;
  6. use Illuminate\Database\Eloquent\Collection;
  7. /**
  8. * Lembrete enviado ao prestador quando um atendimento já iniciou
  9. * há 20 minutos e o código de confirmação ainda não foi preenchido.
  10. */
  11. class CodigoNaoPreenchidoPush extends BasePushNotification
  12. {
  13. public function __construct(
  14. private readonly string $clientName,
  15. ) {}
  16. public function label(): string
  17. {
  18. return 'provider_code_reminder';
  19. }
  20. public function title(): string
  21. {
  22. return 'Confirme o código do atendimento';
  23. }
  24. public function body(): string
  25. {
  26. return "Não esqueça de confirmar o código informado por {$this->clientName} para iniciar o registro do serviço.";
  27. }
  28. public function target(): PushNotificationTargetEnum
  29. {
  30. return PushNotificationTargetEnum::PRESTADOR;
  31. }
  32. public function category(): PushNotificationCategoryEnum
  33. {
  34. return PushNotificationCategoryEnum::TRANSACIONAL;
  35. }
  36. public function eligibleUsers(): Collection
  37. {
  38. return new Collection();
  39. }
  40. public function notificationCooldownDays(): int
  41. {
  42. return 0;
  43. }
  44. public function categoryCooldownDays(): int
  45. {
  46. return 0;
  47. }
  48. }