Total Complexity | 4 |
Total Lines | 65 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
9 | class BotCommand extends BaseType implements TypeInterface, CollectionItemInterface |
||
10 | { |
||
11 | /** |
||
12 | * {@inheritdoc} |
||
13 | * |
||
14 | * @var array |
||
15 | */ |
||
16 | protected static $requiredParams = ['command', 'description']; |
||
17 | |||
18 | /** |
||
19 | * {@inheritdoc} |
||
20 | * |
||
21 | * @var array |
||
22 | */ |
||
23 | protected static $map = [ |
||
24 | 'command' => true, |
||
25 | 'description' => true, |
||
26 | ]; |
||
27 | |||
28 | /** |
||
29 | * Text of the command, 1-32 characters. Can contain only lowercase English letters, digits and underscores. |
||
30 | * |
||
31 | * @var string |
||
32 | */ |
||
33 | protected $command; |
||
34 | |||
35 | /** |
||
36 | * Description of the command, 3-256 characters. |
||
37 | * |
||
38 | * @var string |
||
39 | */ |
||
40 | protected $description; |
||
41 | |||
42 | /** |
||
43 | * @return string |
||
44 | 2 | */ |
|
45 | public function getCommand() |
||
48 | } |
||
49 | |||
50 | /** |
||
51 | * @param string $command |
||
52 | 3 | * @return void |
|
53 | */ |
||
54 | 3 | public function setCommand($command) |
|
55 | 3 | { |
|
56 | $this->command = $command; |
||
57 | } |
||
58 | |||
59 | /** |
||
60 | 2 | * @return string |
|
61 | */ |
||
62 | 2 | public function getDescription() |
|
65 | } |
||
66 | |||
67 | /** |
||
68 | 3 | * @param string $description |
|
69 | * @return void |
||
70 | 3 | */ |
|
71 | 3 | public function setDescription($description) |
|
76 |