diff options
Diffstat (limited to 'vendor/doctrine/orm/src/Query/AST/LikeExpression.php')
-rw-r--r-- | vendor/doctrine/orm/src/Query/AST/LikeExpression.php | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/vendor/doctrine/orm/src/Query/AST/LikeExpression.php b/vendor/doctrine/orm/src/Query/AST/LikeExpression.php new file mode 100644 index 0000000..e3f67f8 --- /dev/null +++ b/vendor/doctrine/orm/src/Query/AST/LikeExpression.php | |||
@@ -0,0 +1,29 @@ | |||
1 | <?php | ||
2 | |||
3 | declare(strict_types=1); | ||
4 | |||
5 | namespace Doctrine\ORM\Query\AST; | ||
6 | |||
7 | use Doctrine\ORM\Query\AST\Functions\FunctionNode; | ||
8 | use Doctrine\ORM\Query\SqlWalker; | ||
9 | |||
10 | /** | ||
11 | * LikeExpression ::= StringExpression ["NOT"] "LIKE" string ["ESCAPE" char] | ||
12 | * | ||
13 | * @link www.doctrine-project.org | ||
14 | */ | ||
15 | class LikeExpression extends Node | ||
16 | { | ||
17 | public function __construct( | ||
18 | public Node|string $stringExpression, | ||
19 | public InputParameter|FunctionNode|PathExpression|Literal $stringPattern, | ||
20 | public Literal|null $escapeChar = null, | ||
21 | public bool $not = false, | ||
22 | ) { | ||
23 | } | ||
24 | |||
25 | public function dispatch(SqlWalker $walker): string | ||
26 | { | ||
27 | return $walker->walkLikeExpression($this); | ||
28 | } | ||
29 | } | ||