Final Class yii\symfonymailer\PsrEvent
Inheritance | yii\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
Public Methods
Method | Description | Defined By |
---|---|---|
__construct() | yii\symfonymailer\PsrEvent | |
getOriginalEvent() | yii\symfonymailer\PsrEvent |
Method Details
public void __construct ( object $originalEvent ) | ||
$originalEvent |
public function __construct(object $originalEvent)
{
parent::__construct([]);
$this->name = get_class($originalEvent);
$this->originalEvent = $originalEvent;
}
public void getOriginalEvent ( ) |
public function getOriginalEvent(): object
{
return $this->originalEvent;
}