1 | <?php |
||
11 | class QueuedTaskRepository extends EntityRepository |
||
12 | { |
||
13 | /** |
||
14 | * @param string $name |
||
15 | * @param \DateTime $executeAt |
||
16 | * @return QueuedTaskInterface |
||
17 | */ |
||
18 | public function getByNameAndExecuteAt(string $name, \DateTime $executeAt): QueuedTaskInterface |
||
29 | |||
30 | /** |
||
31 | * @param string $name |
||
32 | * @return QueuedTaskInterface |
||
33 | */ |
||
34 | public function getByNameAndExecuteAtBeforeNow(string $name): QueuedTaskInterface |
||
46 | |||
47 | /** |
||
48 | * @param int $limit |
||
49 | * @return QueuedTaskInterface[] |
||
50 | */ |
||
51 | public function findPending(int $limit): array |
||
64 | } |
||
65 |