| 1 | <?php |
||
| 10 | class SearchExpression |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * The conditions that together represent the expression. |
||
| 14 | * |
||
| 15 | * @var array |
||
| 16 | */ |
||
| 17 | private $conditions = array(); |
||
| 18 | |||
| 19 | /** |
||
| 20 | * Adds a new condition to the expression. |
||
| 21 | * |
||
| 22 | * @param AbstractCondition $condition The condition to be added. |
||
| 23 | * |
||
| 24 | * @return SearchExpression |
||
| 25 | */ |
||
| 26 | public function addCondition(AbstractCondition $condition) |
||
| 32 | |||
| 33 | /** |
||
| 34 | * Converts the expression to a string that can be sent to the IMAP server. |
||
| 35 | * |
||
| 36 | * @return string |
||
| 37 | */ |
||
| 38 | public function __toString() |
||
| 42 | } |
||
| 43 |