Completed
Pull Request — master (#3833)
by Benjamin
17:15
created

From::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 2
c 1
b 0
f 0
dl 0
loc 4
ccs 3
cts 3
cp 1
rs 10
cc 1
nc 1
nop 2
crap 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Doctrine\DBAL\Query;
6
7
/**
8
 * @internal
9
 */
10
final class From
11
{
12
    /** @var string */
13
    public $table;
14
15
    /** @var string|null */
16
    public $alias;
17
18 1274
    public function __construct(string $table, ?string $alias = null)
19
    {
20 1274
        $this->table = $table;
21 1274
        $this->alias = $alias;
22 1274
    }
23
}
24