Code Coverage
 
Classes and Traits
Functions and Methods
Lines
Total
0.00%
0 / 1
33.33%
1 / 3
CRAP
50.00%
2 / 4
Value
0.00%
0 / 1
33.33%
1 / 3
4.12
50.00%
2 / 4
 __construct($value)
100.00%
1 / 1
1
100.00%
2 / 2
 getValue()
0.00%
0 / 1
2
0.00%
0 / 1
 visit(ExpressionVisitor $visitor)
0.00%
0 / 1
2
0.00%
0 / 1
<?php
// Copyright (c) Lellys Informática. All rights reserved. See License.txt in the project root for license information.
namespace Easy\Collections\Linq\Expr;
class Value implements Expression
{
    /**
     * @var mixed
     */
    private $value;
    /**
     * @param mixed $value
     */
    public function __construct($value)
    {
        $this->value = $value;
    }
    /**
     * @return mixed
     */
    public function getValue()
    {
        return $this->value;
    }
    /**
     * {@inheritDoc}
     */
    public function visit(ExpressionVisitor $visitor)
    {
        return $visitor->walkValue($this);
    }