| 1 | <?php |
||
| 14 | class Artist implements IMusicServiceEndpoint |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * @var SpotifyService |
||
| 18 | */ |
||
| 19 | protected $parent; |
||
| 20 | |||
| 21 | 1 | public function __construct(SpotifyService $apiService) |
|
| 25 | |||
| 26 | /** |
||
| 27 | * @return mixed |
||
| 28 | */ |
||
| 29 | function setParent($parent) |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @return SpotifyService |
||
| 36 | */ |
||
| 37 | function getParent() |
||
| 41 | |||
| 42 | /** |
||
| 43 | * @param $arguments |
||
| 44 | * |
||
| 45 | * @return mixed |
||
| 46 | */ |
||
| 47 | public function get($arguments) |
||
| 51 | |||
| 52 | /** |
||
| 53 | * @param $arguments |
||
| 54 | * |
||
| 55 | * @return mixed |
||
| 56 | */ |
||
| 57 | public function getComplete($arguments) |
||
| 61 | |||
| 62 | /** |
||
| 63 | * @param $id |
||
| 64 | * |
||
| 65 | * @return mixed |
||
| 66 | */ |
||
| 67 | public function getById($id) |
||
| 71 | |||
| 72 | /** |
||
| 73 | * @param $name |
||
| 74 | * |
||
| 75 | * @return mixed |
||
| 76 | */ |
||
| 77 | public function getByName($name) |
||
| 81 | |||
| 82 | /** |
||
| 83 | * @param $guid |
||
| 84 | * |
||
| 85 | * @return mixed |
||
| 86 | */ |
||
| 87 | public function getByGuid($guid) |
||
| 91 | |||
| 92 | } |
Adding explicit visibility (
private,protected, orpublic) is generally recommend to communicate to other developers how, and from where this method is intended to be used.