repod/stubs/OCA/GPodderSync/Core/PodcastData/PodcastMetrics.php
Michel Roux df30ff2318
All checks were successful
repod / nextcloud (push) Successful in 47s
repod / nodejs (push) Successful in 1m18s
Readd gpodder stubs
2023-08-02 12:13:16 +02:00

34 lines
626 B
PHP

<?php
declare(strict_types=1);
namespace OCA\GPodderSync\Core\PodcastData;
/**
* @psalm-type PodcastMetricsType = array{
* url: string,
* listenedSeconds: int,
* actionCounts: PodcastActionCounts
* }
*/
interface PodcastMetrics extends \JsonSerializable
{
public function getUrl(): string;
public function getActionCounts(): PodcastActionCounts;
public function getListenedSeconds(): int;
public function addListenedSeconds(int $seconds): void;
/**
* @return PodcastMetricsType
*/
public function toArray(): array;
/**
* @return PodcastMetricsType
*/
public function jsonSerialize(): array;
}