RePod-Nextcloud-App/stubs/OCA/GPodderSync/Core/EpisodeAction/EpisodeAction.php

84 lines
1.2 KiB
PHP
Raw Normal View History

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