public static function getPrefixSuffix($expressionType = Expression::EXPRESSION_TYPE_PLAIN)
    {
        $prefix = '';
        $suffix = '';
        $patternPrefix = '';
        $patternSuffix = '';

        switch ($expressionType) {
            case Expression::EXPRESSION_TYPE_PLAIN:
                $patternPrefix = '^';
                $patternSuffix = '$';
                break;
            case Expression::EXPRESSION_TYPE_REPLACE:
                $prefix = '{{{';
                $suffix = '}}}';
                $patternPrefix = '^';
                $patternSuffix = '$';
                break;
            case Expression::EXPRESSION_TYPE_INLINE_REPLACE:
                $prefix = '{{';
                $suffix = '}}';
                break;
        }

        return [$prefix, $suffix, $patternPrefix, $patternSuffix];
    }
public static function getPrefixSuffix($expressionType = Expression::EXPRESSION_TYPE_PLAIN)
    {
        $prefix = '';
        $suffix = '';
        $patternPrefix = '';
        $patternSuffix = '';

        switch ($expressionType) {
            case Expression::EXPRESSION_TYPE_PLAIN:
                $patternPrefix = '^';
                $patternSuffix = '$';
                break;
            case Expression::EXPRESSION_TYPE_REPLACE:
                $prefix = '{{{';
                $suffix = '}}}';
                $patternPrefix = '^';
                $patternSuffix = '$';
                break;
            case Expression::EXPRESSION_TYPE_INLINE_REPLACE:
                $prefix = '{{';
                $suffix = '}}';
                break;
        }

        return [$prefix, $suffix, $patternPrefix, $patternSuffix];
    }
public static function getPrefixSuffix ( $ expressionType = Expression :: EXPRESSION_TYPE_PLAIN ) { $ prefix = '' ; $ suffix = '' ; $ patternPrefix = '' ; $ patternSuffix = '' ; switch ( $ expressionType ) { case Expression :: EXPRESSION_TYPE_PLAIN : $ patternPrefix = '^' ; $ patternSuffix = '$' ; break ; case Expression :: EXPRESSION_TYPE_REPLACE : $ prefix = '{{{' ; $ suffix = '}}}' ; $ patternPrefix = '^' ; $ patternSuffix = '$' ; break ; case Expression :: EXPRESSION_TYPE_INLINE_REPLACE : $ prefix = '{{' ; $ suffix = '}}' ; break ; } return [ $ prefix , $ suffix , $ patternPrefix , $ patternSuffix ] ; }
Get prefix and suffix
@param  string $expressionType
@return string[4] Returns the expression type prefix, suffix, pattern prefix and suffix.
@example
```php
list(
$prefix,
$suffix,
$patternPrefix,
$patternSuffix
) = Expression::getPrefixSuffix(Expression::EXPRESSION_TYPE_INLINE_REPLACE);
```
Get prefix and suffix