Code Duplication    Length = 119-129 lines in 2 locations

src/Model/Song.php 1 location

@@ 11-139 (lines=129) @@
8
 * Class Song
9
 * @package Pbxg33k\MusicInfo\Model
10
 */
11
class Song extends BaseModel
12
{
13
14
    /**
15
     * @var string
16
     */
17
    protected $id;
18
19
    /**
20
     * @var string
21
     */
22
    protected $title;
23
24
    /**
25
     * @var SongArtist[]
26
     */
27
    protected $artist;
28
29
    /**
30
     * Duration in seconds
31
     *
32
     * @var integer
33
     */
34
    protected $duration;
35
36
    /**
37
     * International Standard Recording Code
38
     *
39
     * @var string
40
     */
41
    protected $isrc;
42
43
    public function __construct()
44
    {
45
        $this->artist = new ArrayCollection();
46
    }
47
48
    /**
49
     * @return string
50
     */
51
    public function getId()
52
    {
53
        return $this->id;
54
    }
55
56
    /**
57
     * @param string $id
58
     * @return Song
59
     */
60
    public function setId($id)
61
    {
62
        $this->id = $id;
63
        return $this;
64
    }
65
66
    /**
67
     * @return string
68
     */
69
    public function getTitle()
70
    {
71
        return $this->title;
72
    }
73
74
    /**
75
     * @param string $title
76
     * @return Song
77
     */
78
    public function setTitle($title)
79
    {
80
        $this->title = $title;
81
        return $this;
82
    }
83
84
    /**
85
     * @return ArrayCollection
86
     */
87
    public function getArtist()
88
    {
89
        return $this->artist;
90
    }
91
92
    /**
93
     * @param ArrayCollection $artist
94
     * @return Song
95
     */
96
    public function setArtist($artist)
97
    {
98
        $this->artist = $artist;
99
        return $this;
100
    }
101
102
    /**
103
     * @return int
104
     */
105
    public function getDuration()
106
    {
107
        return $this->duration;
108
    }
109
110
    /**
111
     * @param int $duration
112
     * @return Song
113
     */
114
    public function setDuration($duration)
115
    {
116
        $this->duration = $duration;
117
        return $this;
118
    }
119
120
    /**
121
     * @return string
122
     */
123
    public function getIsrc()
124
    {
125
        return $this->isrc;
126
    }
127
128
    /**
129
     * @param string $isrc
130
     * @return Song
131
     */
132
    public function setIsrc($isrc)
133
    {
134
        $this->isrc = $isrc;
135
        return $this;
136
    }
137
138
139
}

src/Model/SongArtist.php 1 location

@@ 16-134 (lines=119) @@
13
 * Class SongArtist
14
 * @package Pbxg33k\MusicInfo\Model
15
 */
16
class SongArtist extends BaseModel
17
{
18
    /**
19
     * @var Song
20
     */
21
    protected $song;
22
23
    /**
24
     * @var Artist
25
     */
26
    protected $artist;
27
28
    /**
29
     * @var string
30
     */
31
    protected $role;
32
33
    /**
34
     * @var string
35
     */
36
    protected $joinphrase;
37
38
    /**
39
     * @var integer
40
     */
41
    protected $order;
42
43
    /**
44
     * @return Song
45
     */
46
    public function getSong()
47
    {
48
        return $this->song;
49
    }
50
51
    /**
52
     * @param Song $song
53
     * @return SongArtist
54
     */
55
    public function setSong($song)
56
    {
57
        $this->song = $song;
58
        return $this;
59
    }
60
61
    /**
62
     * @return Artist
63
     */
64
    public function getArtist()
65
    {
66
        return $this->artist;
67
    }
68
69
    /**
70
     * @param Artist $artist
71
     * @return SongArtist
72
     */
73
    public function setArtist($artist)
74
    {
75
        $this->artist = $artist;
76
        return $this;
77
    }
78
79
    /**
80
     * @return string
81
     */
82
    public function getRole()
83
    {
84
        return $this->role;
85
    }
86
87
    /**
88
     * @param string $role
89
     * @return SongArtist
90
     */
91
    public function setRole($role)
92
    {
93
        $this->role = $role;
94
        return $this;
95
    }
96
97
    /**
98
     * @return string
99
     */
100
    public function getJoinphrase()
101
    {
102
        return $this->joinphrase;
103
    }
104
105
    /**
106
     * @param string $joinphrase
107
     * @return SongArtist
108
     */
109
    public function setJoinphrase($joinphrase)
110
    {
111
        $this->joinphrase = $joinphrase;
112
        return $this;
113
    }
114
115
    /**
116
     * @return int
117
     */
118
    public function getOrder()
119
    {
120
        return $this->order;
121
    }
122
123
    /**
124
     * @param int $order
125
     * @return SongArtist
126
     */
127
    public function setOrder($order)
128
    {
129
        $this->order = $order;
130
        return $this;
131
    }
132
133
134
}