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

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