Passed
Push — main ( f4a2aa...551259 )
by Pranjal
02:19
created

TableConstraint::getForeignColumnName()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
1
<?php
2
/*
3
 * This file is part of the Scrawler package.
4
 *
5
 * (c) Pranjal Pandey <[email protected]>
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 */
10
11
namespace Scrawler\Arca\Manager;
12
13
/**
14
 * Class to store table constraints.
15
 */
16
class TableConstraint
17
{
18
    public function __construct(
19
        private string $foreignTableName,
20
        private string $localColumnName,
21
        private string $foreignColumnName,
22
    ) {
23
    }
24
25
    public function getForeignTableName(): string
26
    {
27
        return $this->foreignTableName;
28
    }
29
30
    public function getLocalColumnName(): string
31
    {
32
        return $this->localColumnName;
33
    }
34
35
    public function getForeignColumnName(): string
36
    {
37
        return $this->foreignColumnName;
38
    }
39
}
40