1<?php
2
3/**
4 * Swift Mailer Events Layer
5 * Please read the LICENSE file
6 * @copyright Chris Corbyn <chris@w3style.co.uk>
7 * @author Chris Corbyn <chris@w3style.co.uk>
8 * @package Swift_Events
9 * @license GNU Lesser General Public License
10 */
11
12/**
13 * Provides core functionality for Swift generated events for plugins
14 * @package Swift_Events
15 * @author Chris Corbyn <chris@w3style.co.uk>
16 */
17abstract class Swift_Events
18{
19  /**
20   * An instance of Swift
21   * @var Swift
22   */
23  protected $swift = null;
24
25  /**
26   * Provide a reference to te currently running Swift this event was generated from
27   * @param Swift
28   */
29  public function setSwift(Swift $swift)
30  {
31    $this->swift = $swift;
32  }
33  /**
34   * Get the current instance of swift
35   * @return Swift
36   */
37  public function getSwift()
38  {
39    return $this->swift;
40  }
41}
42