34 lines
626 B
PHP
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;
|
|
}
|