| 1 | <?php |
||
| 11 | abstract class AbstractText extends AbstractCondition |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * Text to be used for the condition. |
||
| 15 | * |
||
| 16 | * @var string |
||
| 17 | */ |
||
| 18 | protected $text; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * Constructor. |
||
| 22 | * |
||
| 23 | * @param string $text Optional text for the condition. |
||
| 24 | */ |
||
| 25 | public function __construct($text = null) |
||
| 31 | |||
| 32 | /** |
||
| 33 | * Sets the text for the condition. |
||
| 34 | * |
||
| 35 | * @param string $text |
||
| 36 | */ |
||
| 37 | public function setText($text) |
||
| 41 | |||
| 42 | /** |
||
| 43 | * Converts the condition to a string that can be sent to the IMAP server. |
||
| 44 | * |
||
| 45 | * @return string |
||
| 46 | */ |
||
| 47 | public function __toString() |
||
| 51 | } |
||
| 52 |