public function __construct(OrderEventMessage $Event) { parent::__construct($Event); if (isset($Event->transactional)) { $this->credit = $Event->credit; $this->debit = $Event->debit; } }