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

Album::getByGuid()   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 0
Metric Value
c 0
b 0
f 0
dl 0
loc 4
ccs 0
cts 2
cp 0
rs 10
cc 1
eloc 2
nc 1
nop 1
crap 2
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
}