Passed
Branch develop (a933a7)
by Oguzhan
02:58
created

Artist   A

Complexity

Total Complexity 10

Size/Duplication

Total Lines 137
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 10
c 1
b 0
f 0
lcom 0
cbo 1
dl 0
loc 137
ccs 25
cts 25
cp 1
rs 10

10 Methods

Rating   Name   Duplication   Size   Complexity  
A setId() 0 6 1
A setName() 0 6 1
A setType() 0 6 1
A setUri() 0 6 1
A getId() 0 4 1
A getName() 0 4 1
A getImage() 0 4 1
A setImage() 0 6 1
A getType() 0 4 1
A getUri() 0 4 1
1
<?php
2
namespace Pbxg33k\MusicInfo\Model;
3
4
5
class Artist extends BaseModel
6
{
7
    /**
8
     * Identifier
9
     *
10
     * @var string
11
     */
12
    protected $id;
13
14
    /**
15
     * Artist Name
16
     *
17
     * @var string
18
     */
19
    protected $name;
20
21
    /**
22
     * Image URL
23
     *
24
     * @var string
25
     */
26
    protected $image;
27
28
    /**
29
     * Artist Type
30
     *
31
     * @var string
32
     */
33
    protected $type;
34
35
    /**
36
     * URI to data source
37
     *
38
     * @var string
39
     */
40
    protected $uri;
41
42
    /**
43
     * @return string
44
     */
45 1
    public function getId()
46
    {
47 1
        return $this->id;
48
    }
49
50
    /**
51
     * @param string $id
52
     *
53
     * @return Artist
54
     */
55 6
    public function setId($id)
56
    {
57 6
        $this->id = $id;
58
59 6
        return $this;
60
    }
61
62
    /**
63
     * @return string
64
     */
65 1
    public function getName()
66
    {
67 1
        return $this->name;
68
    }
69
70
    /**
71
     * @param string $name
72
     *
73
     * @return Artist
74
     */
75 6
    public function setName($name)
76
    {
77 6
        $this->name = $name;
78
79 6
        return $this;
80
    }
81
82
    /**
83
     * @return string
84
     */
85 1
    public function getImage()
86
    {
87 1
        return $this->image;
88
    }
89
90
    /**
91
     * @param string $image
92
     *
93
     * @return Artist
94
     */
95 1
    public function setImage($image)
96
    {
97 1
        $this->image = $image;
98
99 1
        return $this;
100
    }
101
102
    /**
103
     * @return string
104
     */
105 1
    public function getType()
106
    {
107 1
        return $this->type;
108
    }
109
110
    /**
111
     * @param string $type
112
     *
113
     * @return Artist
114
     */
115 6
    public function setType($type)
116
    {
117 6
        $this->type = $type;
118
119 6
        return $this;
120
    }
121
122
    /**
123
     * @return string
124
     */
125 1
    public function getUri()
126
    {
127 1
        return $this->uri;
128
    }
129
130
    /**
131
     * @param string $uri
132
     *
133
     * @return Artist
134
     */
135 4
    public function setUri($uri)
136
    {
137 4
        $this->uri = $uri;
138
139 4
        return $this;
140
    }
141
}