Total Complexity | 4 |
Total Lines | 43 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
7 | class RequiredRelation |
||
8 | { |
||
9 | /** @var string */ |
||
10 | private $propertyName; |
||
11 | /** @var string */ |
||
12 | private $relationEntityFqn; |
||
13 | /** @var bool */ |
||
14 | private $pluralRelation; |
||
15 | |||
16 | /** |
||
17 | * @param string $propertyName |
||
18 | * @param string $relationEntityFqn |
||
19 | * @param bool $pluralRelation |
||
20 | */ |
||
21 | public function __construct(string $propertyName, string $relationEntityFqn, bool $pluralRelation) |
||
22 | { |
||
23 | $this->propertyName = $propertyName; |
||
24 | $this->relationEntityFqn = $relationEntityFqn; |
||
25 | $this->pluralRelation = $pluralRelation; |
||
26 | } |
||
27 | |||
28 | /** |
||
29 | * @return string |
||
30 | */ |
||
31 | public function getPropertyName(): string |
||
32 | { |
||
33 | return $this->propertyName; |
||
34 | } |
||
35 | |||
36 | /** |
||
37 | * @return string |
||
38 | */ |
||
39 | public function getRelationEntityFqn(): string |
||
40 | { |
||
41 | return $this->relationEntityFqn; |
||
42 | } |
||
43 | |||
44 | /** |
||
45 | * @return bool |
||
46 | */ |
||
47 | public function isPluralRelation(): bool |
||
50 | } |
||
51 | } |
||
52 |