Total Lines | 38 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
16 | interface Swift_Spool |
||
|
|||
17 | { |
||
18 | /** |
||
19 | * Starts this Spool mechanism. |
||
20 | */ |
||
21 | public function start(); |
||
22 | |||
23 | /** |
||
24 | * Stops this Spool mechanism. |
||
25 | */ |
||
26 | public function stop(); |
||
27 | |||
28 | /** |
||
29 | * Tests if this Spool mechanism has started. |
||
30 | * |
||
31 | * @return bool |
||
32 | */ |
||
33 | public function isStarted(); |
||
34 | |||
35 | /** |
||
36 | * Queues a message. |
||
37 | * |
||
38 | * @param Swift_Mime_Message $message The message to store |
||
39 | * |
||
40 | * @return bool Whether the operation has succeeded |
||
41 | */ |
||
42 | public function queueMessage(Swift_Mime_Message $message); |
||
43 | |||
44 | /** |
||
45 | * Sends messages using the given transport instance. |
||
46 | * |
||
47 | * @param Swift_Transport $transport A transport instance |
||
48 | * @param string[] $failedRecipients An array of failures by-reference |
||
49 | * |
||
50 | * @return int The number of sent emails |
||
51 | */ |
||
52 | public function flushQueue(Swift_Transport $transport, &$failedRecipients = null); |
||
53 | } |
||
54 |
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.