Test Setup Failed
Push — master ( 298fd3...56daff )
by Matthew
17:14
created

AbstractJobManager::pruneExpiredJobs()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 2
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
    public function getStatus()
34
    {
35
        throw new \Exception('Unsupported');
36
    }
37
38
    public function getJobCount($workerName = null, $methodName = null)
39
    {
40
        throw new \Exception('Unsupported');
41
    }
42
43
    public function deleteJob(Job $job)
44
    {
45
        throw new \Exception('Unsupported');
46
    }
47
48
    public function pruneExpiredJobs($workerName = null, $methodName = null)
49
    {
50
        throw new \Exception('Unsupported');
51
    }
52
53
    public function pruneArchivedJobs(\DateTime $olderThan)
54
    {
55
        throw new \Exception('Unsupported');
56
    }
57
}
58