src/Builder/BaseTypeClassBuilder.php
private function buildValidateUniquenessLine($field_name, array $context)
    {
        $field_names = [var_export($field_name, true)];

        foreach ($context as $v) {
            $field_names[] = var_export($v, true);
        }

        return '$validator->unique(' . implode(', ', $field_names) . ');';
    }
private function buildValidateUniquenessLine($field_name, array $context)
    {
        $field_names = [var_export($field_name, true)];

        foreach ($context as $v) {
            $field_names[] = var_export($v, true);
        }

        return '$validator->unique(' . implode(', ', $field_names) . ');';
    }
private function buildValidateUniquenessLine ( $ field_name , array $ context ) { $ field_names = [ var_export ( $ field_name , true ) ] ; foreach ( $ context as $ v ) { $ field_names [ ] = var_export ( $ v , true ) ; } return '$validator->unique(' . implode ( ', ' , $ field_names ) . ');' ; }
Build validator uniqueness line.

@param  string $field_name
@param  array  $context
@return string
Build validator uniqueness line .