1 | <?php |
||
6 | class Itunes extends AbstractVendor implements VendorInterface |
||
7 | { |
||
8 | /** |
||
9 | * @var string |
||
10 | */ |
||
11 | const SEARCH_URL = "https://itunes.apple.com/search"; |
||
12 | |||
13 | /** |
||
14 | * @var string |
||
15 | */ |
||
16 | const LOOKUP_URL = "https://itunes.apple.com/lookup"; |
||
17 | |||
18 | /** |
||
19 | * @var string |
||
20 | */ |
||
21 | const ENTITY = "podcast"; |
||
22 | |||
23 | /** |
||
24 | * @var string |
||
25 | */ |
||
26 | const MEDIA = "podcast"; |
||
27 | |||
28 | /** |
||
29 | * @var int |
||
30 | */ |
||
31 | private $limit = 15; |
||
32 | |||
33 | /** |
||
34 | * @var string |
||
35 | */ |
||
36 | private $defaultQuery = null; |
||
37 | |||
38 | /** |
||
39 | * Itunes constructor. |
||
40 | */ |
||
41 | public function __construct() |
||
45 | |||
46 | /** |
||
47 | * @return int |
||
48 | */ |
||
49 | public function getLimit() |
||
53 | |||
54 | /** |
||
55 | * @param int $limit |
||
56 | */ |
||
57 | public function setLimit($limit) |
||
61 | |||
62 | /** |
||
63 | * @return void |
||
64 | */ |
||
65 | public function setDefaultQuery() |
||
73 | |||
74 | /** |
||
75 | * @param string $value |
||
76 | * @return string |
||
77 | */ |
||
78 | public function generateUrl($value) |
||
85 | |||
86 | /** |
||
87 | * @param array $response |
||
88 | * @return array |
||
89 | */ |
||
90 | public function build(array $response) |
||
113 | |||
114 | /** |
||
115 | * @return void |
||
116 | */ |
||
117 | public function original() |
||
121 | } |
||
122 |