1 | <?php |
||
11 | class Song implements IMusicServiceEndpoint |
||
12 | { |
||
13 | protected $parent; |
||
14 | |||
15 | public function __construct($parent) |
||
19 | |||
20 | /** |
||
21 | * @param $apiService |
||
22 | * |
||
23 | * @return mixed |
||
24 | */ |
||
25 | public function setParent($apiService) |
||
29 | |||
30 | /** |
||
31 | * Transform single item to model |
||
32 | * |
||
33 | * @param $raw |
||
34 | * |
||
35 | * @return BaseModel |
||
36 | */ |
||
37 | public function transformSingle($raw) |
||
46 | |||
47 | /** |
||
48 | * Transform collection to models |
||
49 | * |
||
50 | * @param $raw |
||
51 | * |
||
52 | * @return ArrayCollection |
||
53 | */ |
||
54 | public function transformCollection($raw) |
||
58 | |||
59 | /** |
||
60 | * Transform to models |
||
61 | * |
||
62 | * @param $raw |
||
63 | * |
||
64 | * @return ArrayCollection |
||
65 | */ |
||
66 | public function transform($raw) |
||
70 | |||
71 | /** |
||
72 | * @return mixed |
||
73 | */ |
||
74 | public function getParent() |
||
78 | |||
79 | /** |
||
80 | * @param $arguments |
||
81 | * |
||
82 | * @return mixed |
||
83 | */ |
||
84 | public function get($arguments) |
||
88 | |||
89 | /** |
||
90 | * @param $arguments |
||
91 | * |
||
92 | * @return mixed |
||
93 | */ |
||
94 | public function getComplete($arguments) |
||
98 | |||
99 | /** |
||
100 | * @param $id |
||
101 | * |
||
102 | * @return mixed |
||
103 | */ |
||
104 | public function getById($id) |
||
108 | |||
109 | /** |
||
110 | * @param $name |
||
111 | * |
||
112 | * @return mixed |
||
113 | */ |
||
114 | public function getByName($name) |
||
118 | |||
119 | /** |
||
120 | * @param $guid |
||
121 | * |
||
122 | * @return mixed |
||
123 | */ |
||
124 | public function getByGuid($guid) |
||
128 | } |