blob: cc6a465b7ced0cd4a2d32e7e92089ff2ee5a4fcd [file] [log] [blame]
Matthias Andreas Benkardb382b102021-01-02 15:32:21 +01001<?php
2
3declare(strict_types=1);
4
5namespace Ddeboer\Imap\Search;
6
7/**
8 * Represents a raw expression.
9 */
10final 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}