repod/stubs/OCA/GPodderSync/Core/EpisodeAction/EpisodeAction.php

45 lines
748 B
PHP
Raw Normal View History

2023-08-02 10:13:16 +00:00
<?php
declare(strict_types=1);
namespace OCA\GPodderSync\Core\EpisodeAction;
/**
* @psalm-type EpisodeActionType = array{
* podcast: string,
* episode: string,
* action: string,
* timestamp: string,
* started: int,
* position: int,
* total: int,
* guid: ?string,
* id: int
* }
*/
interface EpisodeAction
{
public function getPodcast(): string;
public function getEpisode(): string;
public function getAction(): string;
public function getTimestamp(): string;
public function getStarted(): int;
public function getPosition(): int;
public function getTotal(): int;
public function getGuid(): ?string;
public function getId(): int;
/**
* @return EpisodeActionType
*/
public function toArray(): array;
}