nextcloud-gpodder/lib/Db/EpisodeAction/EpisodeActionRepository.php
2021-08-29 13:14:40 +02:00

25 lines
675 B
PHP

<?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);
}
public function findByEpisodeIdentifier(string $identifier, string $userId): ?EpisodeActionEntity {
return $this->episodeActionMapper->findByEpisodeIdentifier($identifier, $userId);
}
}