repod/lib/Service/IProvider.php

30 lines
477 B
PHP
Raw Normal View History

2023-07-28 00:37:57 +00:00
<?php
declare(strict_types=1);
namespace OCA\RePod\Service;
/**
* @psalm-type Podcast = array{
* id: string,
2023-08-01 21:20:22 +00:00
* provider: string,
* 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 00:37:57 +00:00
interface IProvider
{
/**
* @return Podcast[]
2023-07-28 00:37:57 +00:00
*/
public function search(string $value): array;
}