Completed
Push — master ( 745336...aadd5d )
by Matthew
06:17
created

StubJobManager   A

Complexity

Total Complexity 12

Size/Duplication

Total Lines 64
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

Changes 0
Metric Value
wmc 12
lcom 1
cbo 2
dl 0
loc 64
rs 10
c 0
b 0
f 0

12 Methods

Rating   Name   Duplication   Size   Complexity  
A getJob() 0 4 1
A saveHistory() 0 4 1
A save() 0 4 1
A pruneArchivedJobs() 0 4 1
A pruneExpiredJobs() 0 4 1
A pruneErroneousJobs() 0 4 1
A pruneStalledJobs() 0 4 1
A deleteJob() 0 4 1
A getJobCount() 0 4 1
A getStatus() 0 4 1
A resetErroneousJobs() 0 4 1
A resetStalledJobs() 0 4 1
1
<?php
2
3
namespace Dtc\QueueBundle\Tests;
4
5
use Dtc\QueueBundle\Model\AbstractJobManager;
6
use Dtc\QueueBundle\Model\Job;
7
8
class StubJobManager extends AbstractJobManager
9
{
10
    use RecordingTrait;
11
12
    public function getJob($workerName = null, $methodName = null, $prioritize = true, $runId = null)
13
    {
14
        return $this->recordArgs(__FUNCTION__, func_get_args());
15
    }
16
17
    public function saveHistory(Job $job)
18
    {
19
        return $this->recordArgs(__FUNCTION__, func_get_args());
20
    }
21
22
    public function save(Job $job)
23
    {
24
        return $this->recordArgs(__FUNCTION__, func_get_args());
25
    }
26
27
    public function pruneArchivedJobs(\DateTime $olderThan)
28
    {
29
        return $this->recordArgs(__FUNCTION__, func_get_args());
30
    }
31
32
    public function pruneExpiredJobs($workerName = null, $methodName = null)
33
    {
34
        return $this->recordArgs(__FUNCTION__, func_get_args());
35
    }
36
37
    public function pruneErroneousJobs($workerName = null, $methodName = null)
38
    {
39
        return $this->recordArgs(__FUNCTION__, func_get_args());
40
    }
41
42
    public function pruneStalledJobs($workerName = null, $method = null)
43
    {
44
        return $this->recordArgs(__FUNCTION__, func_get_args());
45
    }
46
47
    public function deleteJob(Job $job)
48
    {
49
        return $this->recordArgs(__FUNCTION__, func_get_args());
50
    }
51
52
    public function getJobCount($workerName = null, $methodName = null)
53
    {
54
        return $this->recordArgs(__FUNCTION__, func_get_args());
55
    }
56
57
    public function getStatus()
58
    {
59
        return $this->recordArgs(__FUNCTION__, func_get_args());
60
    }
61
62
    public function resetErroneousJobs($workerName = null, $methodName = null)
63
    {
64
        return $this->recordArgs(__FUNCTION__, func_get_args());
65
    }
66
67
    public function resetStalledJobs($workerName = null, $method = null)
68
    {
69
        return $this->recordArgs(__FUNCTION__, func_get_args());
70
    }
71
}
72