Passed
Branch feature/spotify (bc53f9)
by Oguzhan
10:14
created

Album   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 29
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getParent() 0 4 1
A getByGuid() 0 4 1
A setParent() 0 4 1
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: PBX_g33k
5
 * Date: 22-May-16
6
 * Time: 22:21
7
 */
8
9
namespace Pbxg33k\MusicInfo\Service\VocaDB\Endpoint;
10
11
use Pbxg33k\VocaDB\Album as AlbumEndpoint;
12
use Pbxg33k\MusicInfo\Model\IMusicServiceEndpoint;
13
14
class Album extends AlbumEndpoint implements IMusicServiceEndpoint
15
{
16
    /**
17
     * @return mixed
18
     */
19
    function getParent()
0 ignored issues
show
Best Practice introduced by
It is generally recommended to explicitly declare the visibility for methods.

Adding explicit visibility (private, protected, or public) is generally recommend to communicate to other developers how, and from where this method is intended to be used.

Loading history...
20
    {
21
        // TODO: Implement getApiService() method.
22
    }
23
24
    /**
25
     * Aliases getById
26
     * 
27
     * @param $guid
28
     * @return mixed
29
     */
30
    public function getByGuid($guid)
31
    {
32
        return $this->getById($guid);
33
    }
34
35
    /**
36
     * @return mixed
37
     */
38
    function setParent($apiService)
0 ignored issues
show
Best Practice introduced by
It is generally recommended to explicitly declare the visibility for methods.

Adding explicit visibility (private, protected, or public) is generally recommend to communicate to other developers how, and from where this method is intended to be used.

Loading history...
39
    {
40
        // TODO: Implement setApiService() method.
41
    }
42
}