StubLiveJobsGridSource   A
last analyzed

Complexity

Total Complexity 5

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 8
c 1
b 0
f 0
dl 0
loc 27
ccs 0
cts 10
cp 0
rs 10
wmc 5

4 Methods

Rating   Name   Duplication   Size   Complexity  
A setRunning() 0 3 1
A getId() 0 3 2
A isRunning() 0 3 1
A __construct() 0 3 1
1
<?php
2
3
namespace Dtc\QueueBundle\ORM;
4
5
class StubLiveJobsGridSource
6
{
7
    protected $jobManager;
8
    protected $running = false;
9
    private $columnSource;
0 ignored issues
show
introduced by
The private property $columnSource is not used, and could be removed.
Loading history...
10
11
    public function getId()
12
    {
13
        return 'dtc_queue.grid_source.jobs_'.($this->isRunning() ? 'running' : 'waiting').'.orm';
14
    }
15
16
    public function __construct(JobManager $jobManager)
17
    {
18
        $this->jobManager = $jobManager;
19
    }
20
21
    /**
22
     * @param bool $flag
23
     */
24
    public function setRunning($flag)
25
    {
26
        $this->running = $flag;
27
    }
28
29
    public function isRunning()
30
    {
31
        return $this->running;
32
    }
33
}
34