QueueItem::getCommand()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
crap 1
1
<?php namespace Indatus\Dispatcher;
2
3
/**
4
 * This file is part of Dispatcher
5
 *
6
 * (c) Ben Kuhl <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
class QueueItem
13
{
14
    /** @var \Indatus\Dispatcher\Scheduling\ScheduledCommandInterface */
15
    protected $command;
16
17
    /** @var \Indatus\Dispatcher\Scheduling\Schedulable */
18
    protected $scheduler;
19
20
    /**
21
     * @return \Indatus\Dispatcher\Scheduling\ScheduledCommandInterface
22
     */
23 1
    public function getCommand()
24
    {
25 1
        return $this->command;
26
    }
27
28
    /**
29
     * @param \Indatus\Dispatcher\Scheduling\ScheduledCommandInterface $command
30
     */
31 2
    public function setCommand($command)
32
    {
33 2
        $this->command = $command;
34 2
    }
35
36
    /**
37
     * @return \Indatus\Dispatcher\Scheduling\Schedulable
38
     */
39 1
    public function getScheduler()
40
    {
41 1
        return $this->scheduler;
42
    }
43
44
    /**
45
     * @param \Indatus\Dispatcher\Scheduling\Schedulable $scheduler
46
     */
47 2
    public function setScheduler($scheduler)
48
    {
49 2
        $this->scheduler = $scheduler;
50 2
    }
51
}
52