Completed
Pull Request — master (#11)
by Clément
04:00 queued 33s
created

Lock::setChannel()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 6
ccs 0
cts 5
cp 0
rs 9.4285
cc 1
eloc 3
nc 1
nop 1
crap 2
1
<?php
2
3
namespace Itkg\DelayEventBundle\Model;
4
5
/**
6
 * Class Lock
7
 */
8
class Lock
9
{
10
    /**
11
     * @var bool
12
     */
13
    protected $commandLocked = false;
14
15
    /**
16
     * @var string
17
     */
18
    protected $channel = '';
19
20
    /**
21
     * @return boolean
22
     */
23
    public function isCommandLocked()
24
    {
25
        return $this->commandLocked;
26
    }
27
28
    /**
29
     * @param boolean $commandLocked
30
     *
31
     * @return $this
32
     */
33
    public function setCommandLocked($commandLocked)
34
    {
35
        $this->commandLocked = $commandLocked;
36
37
        return $this;
38
    }
39
40
    /**
41
     * @return string
42
     */
43
    public function getChannel()
44
    {
45
        return $this->channel;
46
    }
47
48
    /**
49
     * @param string $channel
50
     *
51
     * @return Lock
52
     */
53
    public function setChannel($channel)
54
    {
55
        $this->channel = $channel;
56
57
        return $this;
58
    }
59
}
60