repod/stubs/OCA/GPodderSync/Core/EpisodeAction/EpisodeAction.php
Michel Roux 941e1cabbd
All checks were successful
repod / nextcloud (push) Successful in 1m15s
repod / nodejs (push) Successful in 1m52s
Back ready !
2023-08-22 19:41:17 +02:00

105 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()
{
}
}