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

From   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 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