Completed
Pull Request — master (#3626)
by Dallas
14:09
created

Expression   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 1 Features 0
Metric Value
wmc 2
eloc 4
c 1
b 1
f 0
dl 0
loc 13
ccs 5
cts 5
cp 1
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A __toString() 0 3 1
1
<?php
2
3
namespace Doctrine\DBAL\Schema;
4
5
final class Expression
6
{
7
    /** @var string $value */
8
    private $value;
9
10 486
    public function __construct(string $value)
11
    {
12 486
        $this->value = $value;
13 486
    }
14
15 486
    public function __toString()
16
    {
17 486
        return $this->value;
18
    }
19
}
20