Issues (219)

ORM/StubLiveJobsGridSource.php (1 issue)

Severity
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
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