1 | <?php |
||
16 | class Swift_Transport_SpoolTransport implements Swift_Transport |
||
|
|||
17 | { |
||
18 | /** The spool instance */ |
||
19 | private $_spool; |
||
20 | |||
21 | /** The event dispatcher from the plugin API */ |
||
22 | private $_eventDispatcher; |
||
23 | |||
24 | /** |
||
25 | * Constructor. |
||
26 | */ |
||
27 | 1 | public function __construct(Swift_Events_EventDispatcher $eventDispatcher, Swift_Spool $spool = null) |
|
32 | |||
33 | /** |
||
34 | * Sets the spool object. |
||
35 | * |
||
36 | * @param Swift_Spool $spool |
||
37 | * |
||
38 | * @return $this |
||
39 | */ |
||
40 | public function setSpool(Swift_Spool $spool) |
||
46 | |||
47 | /** |
||
48 | * Get the spool object. |
||
49 | * |
||
50 | * @return Swift_Spool |
||
51 | */ |
||
52 | public function getSpool() |
||
56 | |||
57 | /** |
||
58 | * Tests if this Transport mechanism has started. |
||
59 | * |
||
60 | * @return bool |
||
61 | */ |
||
62 | public function isStarted() |
||
66 | |||
67 | /** |
||
68 | * Starts this Transport mechanism. |
||
69 | */ |
||
70 | public function start() |
||
73 | |||
74 | /** |
||
75 | * Stops this Transport mechanism. |
||
76 | */ |
||
77 | public function stop() |
||
80 | |||
81 | /** |
||
82 | * Sends the given message. |
||
83 | * |
||
84 | * @param Swift_Mime_Message $message |
||
85 | * @param string[] $failedRecipients An array of failures by-reference |
||
86 | * |
||
87 | * @return int The number of sent e-mail's |
||
88 | */ |
||
89 | public function send(Swift_Mime_Message $message, &$failedRecipients = null) |
||
109 | |||
110 | /** |
||
111 | * Register a plugin. |
||
112 | * |
||
113 | * @param Swift_Events_EventListener $plugin |
||
114 | */ |
||
115 | public function registerPlugin(Swift_Events_EventListener $plugin) |
||
119 | } |
||
120 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.