src/Domain/Payment/Event/PaymentCreatedEvent.php line 10

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace App\Domain\Payment\Event;
  4. use App\Domain\Payment\Model\Payment;
  5. use App\Domain\Shared\Model\DomainEventInterface;
  6. class PaymentCreatedEvent implements DomainEventInterface
  7. {
  8.     public function __construct(
  9.         private readonly Payment $payment
  10.     ) {
  11.     }
  12.     public function getPayment(): Payment
  13.     {
  14.         return $this->payment;
  15.     }
  16. }