| 1 | <?php |
||
| 21 | class TaskRepository extends EntityRepository implements TaskRepositoryInterface |
||
| 22 | { |
||
| 23 | /** |
||
| 24 | * {@inheritdoc} |
||
| 25 | */ |
||
| 26 | 3 | public function create($handlerClass, $workload = null) |
|
| 30 | 3 | ||
| 31 | 3 | /** |
|
| 32 | * {@inheritdoc} |
||
| 33 | 3 | */ |
|
| 34 | public function persist(TaskInterface $task) |
||
| 40 | 6 | ||
| 41 | /** |
||
| 42 | 6 | * {@inheritdoc} |
|
| 43 | 6 | */ |
|
| 44 | public function flush() |
||
| 50 | |||
| 51 | /** |
||
| 52 | * {@inheritdoc} |
||
| 53 | */ |
||
| 54 | public function findEndBeforeNow() |
||
| 58 | |||
| 59 | /** |
||
| 60 | * Returns task where last-execution is before given date-time. |
||
| 61 | * |
||
| 62 | * @param \DateTime $dateTime |
||
| 63 | * |
||
| 64 | * @return TaskInterface[] |
||
| 65 | */ |
||
| 66 | public function findEndBefore(\DateTime $dateTime) |
||
| 74 | } |
||
| 75 |