| 1 | <?php | ||
| 19 | class ImpersonatePlugin implements \Swift_Events_SendListener | ||
| 20 | { | ||
| 21 | /** | ||
| 22 | * @var string | ||
| 23 | */ | ||
| 24 | private $fromAddress; | ||
| 25 | |||
| 26 | /** | ||
| 27 | * @param string $fromAddress Address the message should be sent from | ||
| 28 | */ | ||
| 29 | public function __construct($fromAddress) | ||
| 33 | |||
| 34 | /** | ||
| 35 | * @param \Swift_Events_SendEvent $event | ||
| 36 | */ | ||
| 37 | public function beforeSendPerformed(\Swift_Events_SendEvent $event) | ||
| 46 | |||
| 47 | /** | ||
| 48 | * @param \Swift_Events_SendEvent $event | ||
| 49 | */ | ||
| 50 | public function sendPerformed(\Swift_Events_SendEvent $event) | ||
| 59 | } | ||
| 60 |