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

Expression   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 3
eloc 5
dl 0
loc 24
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __toString() 0 3 1
A __construct() 0 3 1
A getValue() 0 3 1
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