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