Artist   A
last analyzed

Complexity

Total Complexity 10

Size/Duplication

Total Lines 137
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

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

10 Methods

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