repod/stubs/OCA/GPodderSync/Core/PodcastData/PodcastMetrics.php
Michel Roux e2735080f0
All checks were successful
repod / xml (push) Successful in 16s
repod / php (push) Successful in 41s
repod / nodejs (push) Successful in 43s
repod / release (push) Has been skipped
feat: 🧑‍💻 switch to phpstan
2025-02-14 16:25:10 +00:00

49 lines
843 B
PHP

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