2021-06-27 13:19:26 +02:00
|
|
|
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
|
|
namespace OCA\GPodderSync\Db\EpisodeAction;
|
|
|
|
|
|
|
|
class EpisodeActionRepository {
|
|
|
|
/**
|
|
|
|
* @var EpisodeActionMapper
|
|
|
|
*/
|
|
|
|
private EpisodeActionMapper $episodeActionMapper;
|
|
|
|
|
|
|
|
public function __construct(EpisodeActionMapper $episodeActionMapper) {
|
|
|
|
$this->episodeActionMapper = $episodeActionMapper;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function findAll(\DateTime $sinceTimestamp, string $userId) : array {
|
|
|
|
return $this->episodeActionMapper->findAll($sinceTimestamp, $userId);
|
|
|
|
}
|
|
|
|
|
2021-08-25 19:33:00 +02:00
|
|
|
public function findByEpisodeIdentifier(string $identifier, string $userId): ?EpisodeActionEntity {
|
2021-08-24 23:19:21 +02:00
|
|
|
return $this->episodeActionMapper->findByEpisodeIdentifier($identifier, $userId);
|
2021-06-27 13:19:26 +02:00
|
|
|
}
|
2021-08-24 23:19:21 +02:00
|
|
|
|
2021-06-27 13:19:26 +02:00
|
|
|
}
|