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

Expression::__toString()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 1 Features 0
Metric Value
eloc 1
c 1
b 1
f 0
dl 0
loc 3
ccs 2
cts 2
cp 1
rs 10
cc 1
nc 1
nop 0
crap 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