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::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 3
nc 1
nop 3
dl 0
loc 5
ccs 0
cts 5
cp 0
crap 2
rs 10
c 1
b 0
f 0
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