<?phpdeclare(strict_types=1);namespace App\Domain\Payment\Event;use App\Domain\Payment\Model\Payment;use App\Domain\Shared\Model\DomainEventInterface;class PaymentCreatedEvent implements DomainEventInterface{ public function __construct( private readonly Payment $payment ) { } public function getPayment(): Payment { return $this->payment; }}