summaryrefslogtreecommitdiff
path: root/vendor/doctrine/collections/src/Expr/Value.php
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/doctrine/collections/src/Expr/Value.php')
-rw-r--r--vendor/doctrine/collections/src/Expr/Value.php26
1 files changed, 26 insertions, 0 deletions
diff --git a/vendor/doctrine/collections/src/Expr/Value.php b/vendor/doctrine/collections/src/Expr/Value.php
new file mode 100644
index 0000000..776770d
--- /dev/null
+++ b/vendor/doctrine/collections/src/Expr/Value.php
@@ -0,0 +1,26 @@
1<?php
2
3declare(strict_types=1);
4
5namespace Doctrine\Common\Collections\Expr;
6
7class Value implements Expression
8{
9 public function __construct(private readonly mixed $value)
10 {
11 }
12
13 /** @return mixed */
14 public function getValue()
15 {
16 return $this->value;
17 }
18
19 /**
20 * {@inheritDoc}
21 */
22 public function visit(ExpressionVisitor $visitor)
23 {
24 return $visitor->walkValue($this);
25 }
26}