| 1 | <?php |
||
| 8 | class ScrapePodcast |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @var VendorInterface |
||
| 12 | */ |
||
| 13 | protected $vendor; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @var int |
||
| 17 | */ |
||
| 18 | protected $count = 15; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @var bool |
||
| 22 | */ |
||
| 23 | protected $isOrginal = false; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * ScrapePodcast constructor. |
||
| 27 | */ |
||
| 28 | public function __construct() |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @return ScrapePodcast |
||
| 35 | */ |
||
| 36 | public function itunes() |
||
| 42 | |||
| 43 | /** |
||
| 44 | * @return ScrapePodcast |
||
| 45 | */ |
||
| 46 | public function digitalPodcast() |
||
| 52 | |||
| 53 | /** |
||
| 54 | * @param int $count |
||
| 55 | * |
||
| 56 | * @return ScrapePodcast |
||
| 57 | */ |
||
| 58 | public function limit($count) |
||
| 64 | |||
| 65 | /** |
||
| 66 | * @param string $term |
||
| 67 | * |
||
| 68 | * @return array |
||
| 69 | */ |
||
| 70 | public function search($term) |
||
| 74 | |||
| 75 | /** |
||
| 76 | * @param $id |
||
| 77 | * |
||
| 78 | * @return array |
||
| 79 | */ |
||
| 80 | public function find($id) |
||
| 84 | |||
| 85 | /** |
||
| 86 | * @param string $feed |
||
| 87 | * |
||
| 88 | * @return array |
||
| 89 | */ |
||
| 90 | public function feed($feed) |
||
| 94 | |||
| 95 | /** |
||
| 96 | * @return ScrapePodcast |
||
| 97 | */ |
||
| 98 | public function original() |
||
| 104 | |||
| 105 | /** |
||
| 106 | * @return PodcastScraper |
||
| 107 | */ |
||
| 108 | protected function engine() |
||
| 114 | } |
||
| 115 |