ReferencedColumn::getReferenceNumberColumnName()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 1
1
<?php
2
declare(strict_types=1);
3
4
namespace Maba\DatabaseInconsistencyFinder\Entity;
5
6
use Doctrine\DBAL\Connection;
7
8
class ReferencedColumn
9
{
10
    /**
11
     * @var Connection
12
     */
13
    private $connection;
14
15
    /**
16
     * @var string
17
     */
18
    private $tableName;
19
20
    /**
21
     * @var string
22
     */
23
    private $idColumnName;
24
25
    /**
26
     * @var string
27
     */
28
    private $referenceNumberColumnName;
29
30 12
    public function getConnection(): Connection
31
    {
32 12
        return $this->connection;
33
    }
34
35 12
    public function setConnection(Connection $connection): self
36
    {
37 12
        $this->connection = $connection;
38 12
        return $this;
39
    }
40
41 12
    public function getTableName(): string
42
    {
43 12
        return $this->tableName;
44
    }
45
46 12
    public function setTableName(string $tableName): self
47
    {
48 12
        $this->tableName = $tableName;
49 12
        return $this;
50
    }
51
52 12
    public function getIdColumnName(): string
53
    {
54 12
        return $this->idColumnName;
55
    }
56
57 12
    public function setIdColumnName(string $idColumnName): self
58
    {
59 12
        $this->idColumnName = $idColumnName;
60 12
        return $this;
61
    }
62
63 12
    public function getReferenceNumberColumnName(): string
64
    {
65 12
        return $this->referenceNumberColumnName;
66
    }
67
68 12
    public function setReferenceNumberColumnName(string $referenceNumberColumnName): self
69
    {
70 12
        $this->referenceNumberColumnName = $referenceNumberColumnName;
71 12
        return $this;
72
    }
73
}
74