1 | <?php |
||
16 | abstract class Swift_ConfigurableSpool implements Swift_Spool |
||
|
|||
17 | { |
||
18 | /** |
||
19 | * The maximum number of messages to send per flush |
||
20 | * |
||
21 | * @var int |
||
22 | */ |
||
23 | private $_message_limit; |
||
24 | |||
25 | /** |
||
26 | * The time limit per flush |
||
27 | * |
||
28 | * @var int |
||
29 | */ |
||
30 | private $_time_limit; |
||
31 | |||
32 | /** |
||
33 | * Sets the maximum number of messages to send per flush. |
||
34 | * |
||
35 | * @param int $limit |
||
36 | */ |
||
37 | public function setMessageLimit($limit) |
||
41 | |||
42 | /** |
||
43 | * Gets the maximum number of messages to send per flush. |
||
44 | * |
||
45 | * @return int The limit |
||
46 | */ |
||
47 | public function getMessageLimit() |
||
51 | |||
52 | /** |
||
53 | * Sets the time limit (in seconds) per flush. |
||
54 | * |
||
55 | * @param int $limit The limit |
||
56 | */ |
||
57 | public function setTimeLimit($limit) |
||
61 | |||
62 | /** |
||
63 | * Gets the time limit (in seconds) per flush. |
||
64 | * |
||
65 | * @return int The limit |
||
66 | */ |
||
67 | public function getTimeLimit() |
||
71 | } |
||
72 |
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.