Passed
Push — master ( 75ee28...758f58 )
by Sebastian
04:00
created

Mailcode_Commands_ShowBase   A

Complexity

Total Complexity 6

Size/Duplication

Total Lines 38
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 14
c 1
b 0
f 1
dl 0
loc 38
rs 10
wmc 6

6 Methods

Rating   Name   Duplication   Size   Complexity  
A getDefaultType() 0 3 1
A supportsType() 0 3 1
A supportsLogicKeywords() 0 3 1
A requiresParameters() 0 3 1
A supportsURLEncoding() 0 3 1
A generatesContent() 0 3 1
1
<?php
2
/**
3
 * File containing the {@see Mailcode_Commands_IfBase} class.
4
 *
5
 * @package Mailcode
6
 * @subpackage Commands
7
 * @see Mailcode_Commands_IfBase
8
 */
9
10
declare(strict_types=1);
11
12
namespace Mailcode;
13
14
/**
15
 * Abstract base class for IF commands (IF, ELSEIF).
16
 *
17
 * @package Mailcode
18
 * @subpackage Commands
19
 * @author Sebastian Mordziol <[email protected]>
20
 */
21
abstract class Mailcode_Commands_ShowBase
22
    extends Mailcode_Commands_Command
23
    implements
24
    Mailcode_Commands_Command_Type_Standalone,
25
    Mailcode_Interfaces_Commands_Variable,
26
    Mailcode_Interfaces_Commands_URLEncode
27
{
28
    use Mailcode_Traits_Commands_Validation_Variable;
29
    use Mailcode_Traits_Commands_Validation_URLEncode;
30
31
    public function supportsURLEncoding() : bool
32
    {
33
        return true;
34
    }
35
36
    public function requiresParameters(): bool
37
    {
38
        return true;
39
    }
40
41
    public function generatesContent() : bool
42
    {
43
        return true;
44
    }
45
46
    public function supportsLogicKeywords() : bool
47
    {
48
        return false;
49
    }
50
51
    public function supportsType(): bool
52
    {
53
        return false;
54
    }
55
56
    public function getDefaultType() : string
57
    {
58
        return '';
59
    }
60
}