Passed
Push — master ( 66cd23...caf38d )
by Sebastian
19:58
created

Mailcode_Commands_Command_ShowVariable   A

Complexity

Total Complexity 6

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
eloc 6
c 2
b 0
f 0
dl 0
loc 30
rs 10
wmc 6

6 Methods

Rating   Name   Duplication   Size   Complexity  
A getLabel() 0 3 1
A _validate() 0 2 1
A getName() 0 3 1
A supportsType() 0 3 1
A requiresParameters() 0 3 1
A generatesContent() 0 3 1
1
<?php
2
/**
3
 * File containing the {@see Mailcode_Commands_Command_ShowVariable} class.
4
 *
5
 * @package Mailcode
6
 * @subpackage Commands
7
 * @see Mailcode_Commands_Command_ShowVariable
8
 */
9
10
declare(strict_types=1);
11
12
namespace Mailcode;
13
14
/**
15
 * Mailcode command: show a variable value.
16
 *
17
 * @package Mailcode
18
 * @subpackage Commands
19
 * @author Sebastian Mordziol <[email protected]>
20
 */
21
class Mailcode_Commands_Command_ShowVariable extends Mailcode_Commands_Command
22
{
23
    public function getName() : string
24
    {
25
        return 'showvar';
26
    }
27
    
28
    public function getLabel() : string
29
    {
30
        return t('Show variable');
31
    }
32
    
33
    public function supportsType(): bool
34
    {
35
        return false;
36
    }
37
38
    public function requiresParameters(): bool
39
    {
40
        return false;
41
    }
42
43
    protected function _validate() : void
44
    {
45
        
46
    }
47
    
48
    public function generatesContent() : bool
49
    {
50
        return true;
51
    }
52
}
53