Final Class yii\symfonymailer\PsrEvent

Inheritanceyii\symfonymailer\PsrEvent » yii\base\Event
Source Code https://github.com/yiisoft/yii2-symfonymailer/blob/master/src/PsrEvent.php

This class wraps a PSR-14 event object. Note that PSR-14 does not place any demands on an event object.

In Yii all events are stoppable, in PSR-14 this is not the case. For this implementation we force all events to be stoppable

Method Details

Hide inherited methods

__construct() public method

public void __construct ( object $originalEvent )
$originalEvent

                public function __construct(object $originalEvent)
{
    parent::__construct([]);
    $this->name = get_class($originalEvent);
    $this->originalEvent = $originalEvent;
}

            
getOriginalEvent() public method

public void getOriginalEvent ( )

                public function getOriginalEvent(): object
{
    return $this->originalEvent;
}