Matthias Andreas Benkard | b382b10 | 2021-01-02 15:32:21 +0100 | [diff] [blame^] | 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | namespace Ddeboer\Imap\Search; |
| 6 | |
| 7 | /** |
| 8 | * Represents a raw expression. |
| 9 | */ |
| 10 | final class RawExpression implements ConditionInterface |
| 11 | { |
| 12 | /** |
| 13 | * Text to be used for the condition. |
| 14 | * |
| 15 | * @var string |
| 16 | */ |
| 17 | private $expression; |
| 18 | |
| 19 | /** |
| 20 | * @param string $expression text for the condition |
| 21 | */ |
| 22 | public function __construct(string $expression) |
| 23 | { |
| 24 | $this->expression = $expression; |
| 25 | } |
| 26 | |
| 27 | public function toString(): string |
| 28 | { |
| 29 | return $this->expression; |
| 30 | } |
| 31 | } |