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.

AbstractAttribute::setSlug()   A
last analyzed

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 0
Metric Value
dl 0
loc 6
ccs 3
cts 3
cp 1
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 1
crap 1
1
<?php
2
3
namespace PhpAbac\Model;
4
5
abstract class AbstractAttribute
6
{
7
    /** @var string **/
8
    protected $name;
9
    /** @var string **/
10
    protected $type;
11
    /** @var string **/
12
    protected $slug;
13
    /** @var mixed **/
14
    protected $value;
15
16
    /**
17
     * @param string $name
18
     *
19
     * @return static
20
     */
21 18
    public function setName($name)
22
    {
23 18
        $this->name = $name;
24
25 18
        return $this;
26
    }
27
28
    /**
29
     * @return string
30
     */
31 4
    public function getName()
32
    {
33 4
        return $this->name;
34
    }
35
36
    /**
37
     * @param string $type
38
     *
39
     * @return static
40
     */
41 14
    public function setType($type)
42
    {
43 14
        $this->type = $type;
44
45 14
        return $this;
46
    }
47
48
    /**
49
     * @return string
50
     */
51 13
    public function getType()
52
    {
53 13
        return $this->type;
54
    }
55
56
    /**
57
     * @param string $slug
58
     *
59
     * @return static
60
     */
61 16
    public function setSlug($slug)
62
    {
63 16
        $this->slug = $slug;
64
65 16
        return $this;
66
    }
67
68
    /**
69
     * @return string
70
     */
71 8
    public function getSlug()
72
    {
73 8
        return $this->slug;
74
    }
75
76
    /**
77
     * @param mixed $value
78
     *
79
     * @return static
80
     */
81 11
    public function setValue($value)
82
    {
83 11
        $this->value = $value;
84
85 11
        return $this;
86
    }
87
88
    /**
89
     * @return mixed
90
     */
91 11
    public function getValue()
92
    {
93 11
        return $this->value;
94
    }
95
	
96
}
97