JoinedTable   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getParent() 0 3 1
A getOuterKey() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Cycle\Schema\Definition\Inheritance;
6
7
use Cycle\Schema\Definition\Entity;
8
use Cycle\Schema\Definition\Inheritance;
9
10
final class JoinedTable extends Inheritance
11
{
12 8
    public function __construct(
13
        private Entity $parent,
14
        private ?string $outerKey = null,
15
    ) {}
16 8
17
    public function getOuterKey(): ?string
18 6
    {
19
        return $this->outerKey;
20 6
    }
21
22
    public function getParent(): Entity
23 6
    {
24
        return $this->parent;
25 6
    }
26
}
27