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

30 lines
506 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 PodcastActionCountsType = array{
* delete: int,
* download: int,
* flattr: int,
* new: int,
* play: int
* }
*/
interface PodcastActionCounts extends \JsonSerializable
{
public function incrementAction(string $action): void;
/**
* @return PodcastActionCountsType
*/
public function toArray(): array;
/**
* @return PodcastActionCountsType
*/
public function jsonSerialize(): array;
}