2021-06-27 11:19:26 +00: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-24 21:19:21 +00:00
|
|
|
public function findByEpisodeIdentifier(string $identifier, string $userId): EpisodeActionEntity {
|
|
|
|
return $this->episodeActionMapper->findByEpisodeIdentifier($identifier, $userId);
|
2021-06-27 11:19:26 +00:00
|
|
|
}
|
2021-08-24 21:19:21 +00:00
|
|
|
|
2021-06-27 11:19:26 +00:00
|
|
|
}
|