src/ValueObject/Template.php
private static function isValid(string $content): bool
    {
        if ('' === $content) {
            return false;
        }

        return (bool)preg_match_all(static::getPlaceholderPattern(), $content);
    }
private static function isValid(string $content): bool
    {
        if ('' === $content) {
            return false;
        }

        return (bool)preg_match_all(static::getPlaceholderPattern(), $content);
    }
private static function isValid ( string $ content ) : bool { if ( '' === $ content ) { return false ; } return ( bool ) preg_match_all ( static :: getPlaceholderPattern ( ) , $ content ) ; }
Returns information if given template is valid

@param string $content Raw string with placeholders to validate (content of the template)
@return bool
Returns information if given template is valid