for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* File containing the {@see Mailcode_Commands_IfBase} class.
*
* @package Mailcode
* @subpackage Commands
* @see Mailcode_Commands_IfBase
*/
declare(strict_types=1);
namespace Mailcode;
* Abstract base class for IF commands (IF, ELSEIF).
* @author Sebastian Mordziol <[email protected]>
abstract class Mailcode_Commands_IfBase extends Mailcode_Commands_Command
{
public function supportsType(): bool
return true;
}
public function supportsURLEncoding() : bool
return false;
public function requiresParameters(): bool
public function supportsLogicKeywords() : bool
public function isCommand() : bool
return $this->type === 'command' || empty($this->type);
public function isVariable() : bool
return $this->type === 'variable';
public function isContains() : bool
return $this->type === 'contains';
public function isNotContains() : bool
return $this->type === 'not-contains';
protected function getValidations() : array
return array();
public function generatesContent() : bool
public function getSupportedTypes() : array
return array(
'variable',
'command',
'contains',
'not-contains',
'empty',
'not-empty',
'begins-with',
'ends-with',
'bigger-than',
'smaller-than',
'equals-number'
);
public function getDefaultType() : string
return 'command';