領収証発行サービス
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
673B

  1. <?php
  2. namespace App\Events\ReceiptIssuingOrder;
  3. use App\Models\ReceiptIssuingOrder;
  4. use App\Util\DateUtil;
  5. use Illuminate\Broadcasting\InteractsWithSockets;
  6. use Illuminate\Foundation\Events\Dispatchable;
  7. use Illuminate\Queue\SerializesModels;
  8. use Illuminate\Support\Carbon;
  9. /**
  10. * 領収証発行依頼の基底イベントクラス
  11. */
  12. abstract class ReceiptIssuingOrderEvent
  13. {
  14. use Dispatchable, InteractsWithSockets, SerializesModels;
  15. public Carbon $eventDatetime;
  16. public function __construct(
  17. public ReceiptIssuingOrder $order
  18. ) {
  19. $this->eventDatetime = DateUtil::now();
  20. }
  21. abstract public function getEventName(): string;
  22. }