repod/stubs/OCA/GPodderSync/Core/PodcastData/PodcastMetrics.php

34 lines
626 B
PHP
Raw Normal View History

2023-08-02 10:13:16 +00:00
<?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;
}