mirror of
https://github.com/thrillfall/nextcloud-gpodder.git
synced 2024-12-26 15:53:42 +01:00
25 lines
675 B
PHP
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);
|
|
}
|
|
|
|
}
|