45 lines
748 B
PHP
45 lines
748 B
PHP
<?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;
|
|
}
|