LightnCandy\Validator::comment PHP 메소드

comment() 보호된 정적인 메소드

handle comment
protected static comment ( string[] &$token, array\arraystring | integer> &$context ) : boolean | null
$token string[] detected handlebars {{ }} token
$context array\arraystring | integer>
리턴 boolean | null Return true when is comment
    protected static function comment(&$token, &$context)
    {
        if ($token[Token::POS_OP] === '!') {
            $context['usedFeature']['comment']++;
            return true;
        }
    }