1 | <?php |
||
11 | class TaskExecutionRepository implements TaskExecutionRepositoryInterface |
||
12 | { |
||
13 | /** |
||
14 | * @var ObjectManager |
||
15 | */ |
||
16 | private $objectManager; |
||
17 | |||
18 | /** |
||
19 | * @var ORMTaskExecutionRepository |
||
20 | */ |
||
21 | private $taskExecutionRepository; |
||
22 | |||
23 | /** |
||
24 | * @param ObjectManager $objectManager |
||
25 | * @param ORMTaskExecutionRepository $taskExecutionRepository |
||
26 | */ |
||
27 | public function __construct(ObjectManager $objectManager, ORMTaskExecutionRepository $taskExecutionRepository) |
||
32 | |||
33 | /** |
||
34 | * {@inheritdoc} |
||
35 | */ |
||
36 | public function save(TaskExecutionInterface $execution) |
||
41 | |||
42 | /** |
||
43 | * {@inheritdoc} |
||
44 | */ |
||
45 | public function add(TaskExecutionInterface $execution) |
||
50 | |||
51 | /** |
||
52 | * {@inheritdoc} |
||
53 | */ |
||
54 | public function findScheduled() |
||
58 | |||
59 | /** |
||
60 | * {@inheritdoc} |
||
61 | */ |
||
62 | public function findByStartTime(TaskInterface $task, \DateTime $scheduleTime) |
||
66 | |||
67 | public function findAll($limit = null) |
||
71 | |||
72 | public function get($uuid) |
||
76 | } |
||
77 |