mirror of
https://git.crystalyx.net/Xefir/repod.git
synced 2024-12-29 10:10:56 +01:00
30 lines
506 B
PHP
30 lines
506 B
PHP
|
<?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;
|
||
|
}
|