GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Push — master ( 0d82f1...4042bf )
by joseph
20s queued 14s
created

RequiredRelation   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 43
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 10
dl 0
loc 43
ccs 0
cts 17
cp 0
rs 10
c 1
b 0
f 0
wmc 4

4 Methods

Rating   Name   Duplication   Size   Complexity  
A isPluralRelation() 0 3 1
A getPropertyName() 0 3 1
A getRelationEntityFqn() 0 3 1
A __construct() 0 5 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace EdmondsCommerce\DoctrineStaticMeta\DoctrineStaticMeta;
6
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
48
    {
49
        return $this->pluralRelation;
50
    }
51
}
52