| Total Complexity | 13 |
| Total Lines | 62 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 21 | class Mailcode_Commands_Command_For extends Mailcode_Commands_Command implements Mailcode_Commands_Command_Type_Opening |
||
| 22 | { |
||
| 23 | const VALIDATION_INVALID_FOR_STATEMENT = 49701; |
||
| 24 | |||
| 25 | public function getName() : string |
||
| 26 | { |
||
| 27 | return 'for'; |
||
| 28 | } |
||
| 29 | |||
| 30 | public function getLabel() : string |
||
| 31 | { |
||
| 32 | return t('FOR loop'); |
||
| 33 | } |
||
| 34 | |||
| 35 | public function supportsType(): bool |
||
| 38 | } |
||
| 39 | |||
| 40 | public function getDefaultType() : string |
||
| 41 | { |
||
| 42 | return ''; |
||
| 43 | } |
||
| 44 | |||
| 45 | public function requiresParameters(): bool |
||
| 48 | } |
||
| 49 | |||
| 50 | public function supportsLogicKeywords() : bool |
||
| 51 | { |
||
| 52 | return false; |
||
| 53 | } |
||
| 54 | |||
| 55 | protected function getValidations() : array |
||
| 56 | { |
||
| 57 | return array( |
||
| 58 | 'statement' |
||
| 59 | ); |
||
| 60 | } |
||
| 61 | |||
| 62 | public function generatesContent() : bool |
||
| 65 | } |
||
| 66 | |||
| 67 | protected function validateSyntax_statement() : void |
||
| 83 | ); |
||
| 84 | } |
||
| 86 |