Total Complexity | 10 |
Total Lines | 59 |
Duplicated Lines | 0 % |
Changes | 9 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
21 | class Mailcode_Commands_Command_ShowVariable extends Mailcode_Commands_Command implements Mailcode_Commands_Command_Type_Standalone |
||
22 | { |
||
23 | use Mailcode_Traits_Commands_Validation_Variable; |
||
24 | |||
25 | const VALIDATION_TOO_MANY_PARAMETERS = 69701; |
||
26 | |||
27 | public function getName() : string |
||
28 | { |
||
29 | return 'showvar'; |
||
30 | } |
||
31 | |||
32 | public function getLabel() : string |
||
33 | { |
||
34 | return t('Show variable'); |
||
35 | } |
||
36 | |||
37 | public function supportsType(): bool |
||
38 | { |
||
39 | return false; |
||
40 | } |
||
41 | |||
42 | public function getDefaultType() : string |
||
43 | { |
||
44 | return ''; |
||
45 | } |
||
46 | |||
47 | public function requiresParameters(): bool |
||
50 | } |
||
51 | |||
52 | public function supportsLogicKeywords() : bool |
||
55 | } |
||
56 | |||
57 | protected function getValidations() : array |
||
62 | ); |
||
63 | } |
||
64 | |||
65 | public function generatesContent() : bool |
||
66 | { |
||
67 | return true; |
||
68 | } |
||
69 | |||
70 | protected function validateSyntax_no_other_tokens() : void |
||
80 | ); |
||
81 | } |
||
82 | } |
||
84 |