| Total Complexity | 13 |
| Total Lines | 72 |
| Duplicated Lines | 0 % |
| Changes | 5 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 21 | abstract class Mailcode_Commands_IfBase extends Mailcode_Commands_Command |
||
| 22 | { |
||
| 23 | public function supportsType(): bool |
||
| 26 | } |
||
| 27 | |||
| 28 | public function supportsURLEncoding() : bool |
||
| 29 | { |
||
| 30 | return false; |
||
| 31 | } |
||
| 32 | |||
| 33 | public function requiresParameters(): bool |
||
| 34 | { |
||
| 35 | return true; |
||
| 36 | } |
||
| 37 | |||
| 38 | public function supportsLogicKeywords() : bool |
||
| 39 | { |
||
| 40 | return true; |
||
| 41 | } |
||
| 42 | |||
| 43 | public function isCommand() : bool |
||
| 44 | { |
||
| 45 | return $this->type === 'command' || empty($this->type); |
||
| 46 | } |
||
| 47 | |||
| 48 | public function isVariable() : bool |
||
| 49 | { |
||
| 50 | return $this->type === 'variable'; |
||
| 51 | } |
||
| 52 | |||
| 53 | public function isContains() : bool |
||
| 56 | } |
||
| 57 | |||
| 58 | public function isNotContains() : bool |
||
| 59 | { |
||
| 60 | return $this->type === 'not-contains'; |
||
| 61 | } |
||
| 62 | |||
| 63 | protected function getValidations() : array |
||
| 64 | { |
||
| 65 | return array(); |
||
| 66 | } |
||
| 67 | |||
| 68 | public function generatesContent() : bool |
||
| 69 | { |
||
| 70 | return false; |
||
| 71 | } |
||
| 72 | |||
| 73 | public function getSupportedTypes() : array |
||
| 87 | ); |
||
| 88 | } |
||
| 89 | |||
| 90 | public function getDefaultType() : string |
||
| 95 |