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 ( d1c731...ca9b69 )
by Axel
02:45
created

PolicyRuleAttribute::setType()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 3
Bugs 1 Features 2
Metric Value
c 3
b 1
f 2
dl 0
loc 6
ccs 3
cts 3
cp 1
rs 9.4285
cc 1
eloc 3
nc 1
nop 1
crap 1
1
<?php
2
3
namespace PhpAbac\Model;
4
5
class PolicyRuleAttribute
6
{
7
    /** @var PhpAbac\Model\AbstractAttribute **/
8
    protected $attribute;
9
    /** @var string **/
10
    protected $comparisonType;
11
    /** @var string **/
12
    protected $comparison;
13
    /** @var mixed **/
14
    protected $value;
15
16
    /**
17
     * @param \PhpAbac\Model\AbstractAttribute $attribute
18
     *
19
     * @return \PhpAbac\Model\PolicyRuleAttribute
20
     */
21 3
    public function setAttribute(AbstractAttribute $attribute)
22
    {
23 3
        $this->attribute = $attribute;
0 ignored issues
show
Documentation Bug introduced by
It seems like $attribute of type object<PhpAbac\Model\AbstractAttribute> is incompatible with the declared type object<PhpAbac\Model\Php...odel\AbstractAttribute> of property $attribute.

Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.

Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..

Loading history...
24
25 3
        return $this;
26
    }
27
28
    /**
29
     * @return \PhpAbac\Model\AbstractAttribute
30
     */
31 3
    public function getAttribute()
32
    {
33 3
        return $this->attribute;
34
    }
35
36
    /**
37
     * @param string $comparisonType
38
     *
39
     * @return \PhpAbac\Model\PolicyRuleAttribute
40
     */
41 3
    public function setComparisonType($comparisonType)
42
    {
43 3
        $this->comparisonType = $comparisonType;
44
45 3
        return $this;
46
    }
47
48
    /**
49
     * @return string
50
     */
51 3
    public function getComparisonType()
52
    {
53 3
        return $this->comparisonType;
54
    }
55
56
    /**
57
     * @param string $comparison
58
     *
59
     * @return \PhpAbac\Model\PolicyRuleAttribute
60
     */
61 3
    public function setComparison($comparison)
62
    {
63 3
        $this->comparison = $comparison;
64
65 3
        return $this;
66
    }
67
68
    /**
69
     * @return string
70
     */
71 3
    public function getComparison()
72
    {
73 3
        return $this->comparison;
74
    }
75
76
    /**
77
     * @param mixed $value
78
     *
79
     * @return \PhpAbac\Model\PolicyRuleAttribute
80
     */
81 3
    public function setValue($value)
82
    {
83 3
        $this->value = $value;
84
85 3
        return $this;
86
    }
87
88
    /**
89
     * @return mixed
90
     */
91 3
    public function getValue()
92
    {
93 3
        return $this->value;
94
    }
95
}
96