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;
|
||
|
}
|