vendor/doctrine/collections/src/Expr/Value.php
raw| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | namespace Doctrine\Common\Collections\Expr; |
| 6 | |
| 7 | /** @final since 2.5 */ |
| 8 | class Value implements Expression |
| 9 | { |
| 10 | public function __construct(private readonly mixed $value) |
| 11 | { |
| 12 | } |
| 13 | |
| 14 | /** @return mixed */ |
| 15 | public function getValue() |
| 16 | { |
| 17 | return $this->value; |
| 18 | } |
| 19 | |
| 20 | /** |
| 21 | * {@inheritDoc} |
| 22 | */ |
| 23 | public function visit(ExpressionVisitor $visitor) |
| 24 | { |
| 25 | return $visitor->walkValue($this); |
| 26 | } |
| 27 | } |