2023-07-28 02:37:57 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
|
|
namespace OCA\RePod\Service;
|
|
|
|
|
2023-08-01 23:18:37 +02:00
|
|
|
/**
|
|
|
|
* @psalm-type Podcast = array{
|
|
|
|
* id: string,
|
2023-08-01 23:20:22 +02:00
|
|
|
* provider: string,
|
2023-08-01 23:18:37 +02:00
|
|
|
* website: string,
|
|
|
|
* description: string,
|
|
|
|
* title: string,
|
|
|
|
* author: string,
|
|
|
|
* url: string,
|
|
|
|
* position_last_week: ?string,
|
|
|
|
* mygpo_link: string,
|
|
|
|
* logo_url: string,
|
|
|
|
* lastpub: string,
|
|
|
|
* episode_count: string
|
|
|
|
* }
|
|
|
|
*/
|
2023-07-28 02:37:57 +02:00
|
|
|
interface IProvider
|
|
|
|
{
|
|
|
|
/**
|
2023-08-01 23:18:37 +02:00
|
|
|
* @return Podcast[]
|
2023-07-28 02:37:57 +02:00
|
|
|
*/
|
|
|
|
public function search(string $value): array;
|
|
|
|
}
|