Completed
Push — master ( 11c89b...a1f77e )
by Matthew
03:37
created

AbstractJobManager   A

Complexity

Total Complexity 9

Size/Duplication

Total Lines 58
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 9
lcom 0
cbo 0
dl 0
loc 58
ccs 0
cts 18
cp 0
rs 10
c 0
b 0
f 0

12 Methods

Rating   Name   Duplication   Size   Complexity  
getJob() 0 1 ?
save() 0 1 ?
saveHistory() 0 1 ?
A resetStalledJobs() 0 4 1
A pruneStalledJobs() 0 4 1
A resetErroneousJobs() 0 4 1
A pruneErroneousJobs() 0 4 1
A getStatus() 0 4 1
A getJobCount() 0 4 1
A deleteJob() 0 4 1
A pruneExpiredJobs() 0 4 1
A pruneArchivedJobs() 0 4 1
1
<?php
2
3
namespace Dtc\QueueBundle\Model;
4
5
abstract class AbstractJobManager implements JobManagerInterface
6
{
7
    abstract public function getJob($workerName = null, $methodName = null, $prioritize = true, $runId = null);
8
9
    abstract public function save(Job $job);
10
11
    abstract public function saveHistory(Job $job);
12
13
    public function resetStalledJobs($workerName = null, $method = null)
14
    {
15
        throw new \Exception('Unsupported');
16
    }
17
18
    public function pruneStalledJobs($workerName = null, $method = null)
19
    {
20
        throw new \Exception('Unsupported');
21
    }
22
23
    public function resetErroneousJobs($workerName = null, $methodName = null)
24
    {
25
        throw new \Exception('Unsupported');
26
    }
27
28
    public function pruneErroneousJobs($workerName = null, $methodName = null)
29
    {
30
        throw new \Exception('Unsupported');
31
    }
32
33
    /**
34
     * @return array
35
     *
36
     * @throws \Exception
37
     */
38
    public function getStatus()
39
    {
40
        throw new \Exception('Unsupported');
41
    }
42
43
    public function getJobCount($workerName = null, $methodName = null)
44
    {
45
        throw new \Exception('Unsupported');
46
    }
47
48
    public function deleteJob(Job $job)
49
    {
50
        throw new \Exception('Unsupported');
51
    }
52
53
    public function pruneExpiredJobs($workerName = null, $methodName = null)
54
    {
55
        throw new \Exception('Unsupported');
56
    }
57
58
    public function pruneArchivedJobs(\DateTime $olderThan)
59
    {
60
        throw new \Exception('Unsupported');
61
    }
62
}
63