Test Failed
Push — master ( 99edcd...37bac2 )
by
04:31 queued 02:01
created

Command   A

Complexity

Total Complexity 10

Size/Duplication

Total Lines 105
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 10
dl 0
loc 105
rs 10
c 0
b 0
f 0

10 Methods

Rating   Name   Duplication   Size   Complexity  
A getCode() 0 3 1
A getCmd() 0 3 1
A isEnabled() 0 3 1
A setName() 0 3 1
A setDescription() 0 3 1
A setEnabled() 0 3 1
A setCmd() 0 3 1
A setCode() 0 3 1
A getDescription() 0 3 1
A getName() 0 3 1
1
<?php
2
3
/*
4
 * This file is part of the LineMob package.
5
 *
6
 * (c) Ishmael Doss <[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
namespace LineMob\Core\Storage;
13
14
/**
15
 * @author Ishmael Doss <[email protected]>
16
 */
17
class Command implements CommandInterface
18
{
19
    /**
20
     * @var string
21
     */
22
    private $code;
23
24
    /**
25
     * @var string
26
     */
27
    private $cmd;
28
29
    /**
30
     * @var string
31
     */
32
    private $name;
33
34
    /**
35
     * @var string
36
     */
37
    private $description;
38
39
    /**
40
     * @var bool
41
     */
42
    private $enabled = true;
43
44
    /**
45
     * {@inheritdoc}
46
     */
47
    public function getCode()
48
    {
49
        return $this->code;
50
    }
51
52
    /**
53
     * {@inheritdoc}
54
     */
55
    public function setCode($code)
56
    {
57
        $this->code = $code;
58
    }
59
60
    /**
61
     * {@inheritdoc}
62
     */
63
    public function getCmd()
64
    {
65
        return $this->cmd;
66
    }
67
68
    /**
69
     * {@inheritdoc}
70
     */
71
    public function setCmd($cmd)
72
    {
73
        $this->cmd = $cmd;
74
    }
75
76
    /**
77
     * {@inheritdoc}
78
     */
79
    public function getName()
80
    {
81
        return $this->name;
82
    }
83
84
    /**
85
     * {@inheritdoc}
86
     */
87
    public function setName($name)
88
    {
89
        $this->name = $name;
90
    }
91
92
    /**
93
     * {@inheritdoc}
94
     */
95
    public function getDescription()
96
    {
97
        return $this->description;
98
    }
99
100
    /**
101
     * {@inheritdoc}
102
     */
103
    public function setDescription($description)
104
    {
105
        $this->description = $description;
106
    }
107
108
    /**
109
     * {@inheritdoc}
110
     */
111
    public function isEnabled()
112
    {
113
        return $this->enabled;
114
    }
115
116
    /**
117
     * {@inheritdoc}
118
     */
119
    public function setEnabled($enabled)
120
    {
121
        $this->enabled = $enabled;
122
    }
123
}
124