Passed
Push — master ( 7a3741...d28810 )
by Rafal
02:02
created

SpotifyWebApi   A

Complexity

Total Complexity 7

Size/Duplication

Total Lines 35
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 7
dl 0
loc 35
rs 10
c 0
b 0
f 0

7 Methods

Rating   Name   Duplication   Size   Complexity  
A getUserPlaylistTracks() 0 3 1
A getUserPlaylists() 0 3 1
A deleteUserPlaylistTracks() 0 3 1
A getUserPlaylist() 0 3 1
A addUserPlaylistTracks() 0 3 1
A search() 0 3 1
A setAccessToken() 0 3 1
1
<?php
2
3
4
namespace SpotifyApiConnect\Application\SpotifyWebApiPhp;
5
6
use SpotifyWebAPI\SpotifyWebAPI as BaseSpotifyWebAPI;
7
8
class SpotifyWebApi extends BaseSpotifyWebAPI implements SpotifyWebApiInterface
9
{
10
    public function addUserPlaylistTracks($userId, $playlistId, $tracks, $options = [])
11
    {
12
        return parent::addUserPlaylistTracks($userId, $playlistId, $tracks, $options);
13
    }
14
15
    public function deleteUserPlaylistTracks($userId, $playlistId, $tracks, $snapshotId = '')
16
    {
17
        return parent::deleteUserPlaylistTracks($userId, $playlistId, $tracks, $snapshotId);
18
    }
19
20
    public function getUserPlaylist($userId, $playlistId, $options = [])
21
    {
22
        return parent::getUserPlaylist($userId, $playlistId, $options);
23
    }
24
25
    public function getUserPlaylists($userId, $options = [])
26
    {
27
        return parent::getUserPlaylists($userId, $options);
28
    }
29
30
    public function getUserPlaylistTracks($userId, $playlistId, $options = [])
31
    {
32
        return parent::getUserPlaylistTracks($userId, $playlistId, $options);
33
    }
34
35
    public function search($query, $type, $options = [])
36
    {
37
        return parent::search($query, $type, $options);
38
    }
39
40
    public function setAccessToken($accessToken)
41
    {
42
        parent::setAccessToken($accessToken);
43
    }
44
45
}