Passed
Branch master (837534)
by Oguzhan
04:07 queued 33s
created

Artist::getType()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 4
ccs 0
cts 2
cp 0
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 2
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
    public function getId()
46
    {
47
        return $this->id;
48
    }
49
50
    /**
51
     * @param string $id
52
     *
53
     * @return Artist
54
     */
55 5
    public function setId($id)
56
    {
57 5
        $this->id = $id;
58
59 5
        return $this;
60
    }
61
62
    /**
63
     * @return string
64
     */
65
    public function getName()
66
    {
67
        return $this->name;
68
    }
69
70
    /**
71
     * @param string $name
72
     *
73
     * @return Artist
74
     */
75 5
    public function setName($name)
76
    {
77 5
        $this->name = $name;
78
79 5
        return $this;
80
    }
81
82
    /**
83
     * @return string
84
     */
85
    public function getImage()
86
    {
87
        return $this->image;
88
    }
89
90
    /**
91
     * @param string $image
92
     *
93
     * @return Artist
94
     */
95
    public function setImage($image)
96
    {
97
        $this->image = $image;
98
99
        return $this;
100
    }
101
102
    /**
103
     * @return string
104
     */
105
    public function getType()
106
    {
107
        return $this->type;
108
    }
109
110
    /**
111
     * @param string $type
112
     *
113
     * @return Artist
114
     */
115 5
    public function setType($type)
116
    {
117 5
        $this->type = $type;
118
119 5
        return $this;
120
    }
121
122
    /**
123
     * @return string
124
     */
125
    public function getUri()
126
    {
127
        return $this->uri;
128
    }
129
130
    /**
131
     * @param string $uri
132
     *
133
     * @return Artist
134
     */
135 3
    public function setUri($uri)
136
    {
137 3
        $this->uri = $uri;
138
139 3
        return $this;
140
    }
141
}