repod/stubs/OCA/GPodderSync/Core/EpisodeAction/EpisodeAction.php
Michel Roux 93e4998394
Some checks failed
repod / nextcloud (push) Successful in 56s
repod / xml (push) Successful in 13s
repod / nodejs (push) Failing after 1m50s
cs fix
2023-12-23 16:25:20 +00:00

84 lines
1.2 KiB
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
* }
*/
class EpisodeAction
{
public function __construct(
private string $podcast,
private string $episode,
private string $action,
private string $timestamp,
private int $started,
private int $position,
private int $total,
private ?string $guid,
private ?int $id
) {}
/**
* @return string
*/
public function getPodcast() {}
/**
* @return string
*/
public function getEpisode() {}
/**
* @return string
*/
public function getAction() {}
/**
* @return string
*/
public function getTimestamp() {}
/**
* @return int
*/
public function getStarted() {}
/**
* @return int
*/
public function getPosition() {}
/**
* @return int
*/
public function getTotal() {}
/**
* @return ?string
*/
public function getGuid() {}
/**
* @return int
*/
public function getId() {}
/**
* @return EpisodeActionType
*/
public function toArray() {}
}