Value.php 492 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. namespace Doctrine\Common\Collections\Expr;
  3. class Value implements Expression
  4. {
  5. /** @var mixed */
  6. private $value;
  7. /** @param mixed $value */
  8. public function __construct($value)
  9. {
  10. $this->value = $value;
  11. }
  12. /** @return mixed */
  13. public function getValue()
  14. {
  15. return $this->value;
  16. }
  17. /**
  18. * {@inheritDoc}
  19. */
  20. public function visit(ExpressionVisitor $visitor)
  21. {
  22. return $visitor->walkValue($this);
  23. }
  24. }