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
|
|
|
|
* }
|
|
|
|
*/
|
2023-08-03 22:23:59 +00:00
|
|
|
class EpisodeAction
|
2023-08-02 10:13:16 +00:00
|
|
|
{
|
2023-08-22 17:41:17 +00:00
|
|
|
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
|
|
|
|
) {
|
|
|
|
}
|
|
|
|
|
2023-08-03 22:23:59 +00:00
|
|
|
/**
|
|
|
|
* @return string
|
|
|
|
*/
|
|
|
|
public function getPodcast()
|
|
|
|
{
|
|
|
|
}
|
2023-08-02 10:13:16 +00:00
|
|
|
|
2023-08-03 22:23:59 +00:00
|
|
|
/**
|
|
|
|
* @return string
|
|
|
|
*/
|
|
|
|
public function getEpisode()
|
|
|
|
{
|
|
|
|
}
|
2023-08-02 10:13:16 +00:00
|
|
|
|
2023-08-03 22:23:59 +00:00
|
|
|
/**
|
|
|
|
* @return string
|
|
|
|
*/
|
|
|
|
public function getAction()
|
|
|
|
{
|
|
|
|
}
|
2023-08-02 10:13:16 +00:00
|
|
|
|
2023-08-03 22:23:59 +00:00
|
|
|
/**
|
|
|
|
* @return string
|
|
|
|
*/
|
|
|
|
public function getTimestamp()
|
|
|
|
{
|
|
|
|
}
|
2023-08-02 10:13:16 +00:00
|
|
|
|
2023-08-03 22:23:59 +00:00
|
|
|
/**
|
|
|
|
* @return int
|
|
|
|
*/
|
|
|
|
public function getStarted()
|
|
|
|
{
|
|
|
|
}
|
2023-08-02 10:13:16 +00:00
|
|
|
|
2023-08-03 22:23:59 +00:00
|
|
|
/**
|
|
|
|
* @return int
|
|
|
|
*/
|
|
|
|
public function getPosition()
|
|
|
|
{
|
|
|
|
}
|
2023-08-02 10:13:16 +00:00
|
|
|
|
2023-08-03 22:23:59 +00:00
|
|
|
/**
|
|
|
|
* @return int
|
|
|
|
*/
|
|
|
|
public function getTotal()
|
|
|
|
{
|
|
|
|
}
|
2023-08-02 10:13:16 +00:00
|
|
|
|
2023-08-03 22:23:59 +00:00
|
|
|
/**
|
|
|
|
* @return ?string
|
|
|
|
*/
|
|
|
|
public function getGuid()
|
|
|
|
{
|
|
|
|
}
|
2023-08-02 10:13:16 +00:00
|
|
|
|
2023-08-03 22:23:59 +00:00
|
|
|
/**
|
|
|
|
* @return int
|
|
|
|
*/
|
|
|
|
public function getId()
|
|
|
|
{
|
|
|
|
}
|
2023-08-02 10:13:16 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @return EpisodeActionType
|
|
|
|
*/
|
2023-08-03 22:23:59 +00:00
|
|
|
public function toArray()
|
|
|
|
{
|
|
|
|
}
|
2023-08-02 10:13:16 +00:00
|
|
|
}
|