Completed
Pull Request — master (#3626)
by Dallas
61:41
created

Expression::__toString()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace Doctrine\DBAL\Schema\Expressions;
4
5
class Expression
6
{
7
    /** @var mixed $value */
8
    protected $value;
9
10
    /**
11
     * @param mixed $value
12
     */
13
    public function __construct($value)
14
    {
15
        $this->value = $value;
16
    }
17
18
    /**
19
     * @return mixed
20
     */
21
    public function getValue()
22
    {
23
        return $this->value;
24
    }
25
26
    public function __toString() : string
27
    {
28
        return (string) $this->getValue();
29
    }
30
}
31