Different
class Different extends Rule implements RuleInterface
Different rule.
Traits
                    Doesn't validate when empty trait.
                
            
                    I18n aware trait.
                
            Properties
| protected I18n | $i18n | I18n. | from I18nAwareTrait | 
| protected string | $field | Field name. | |
| protected array | $i18nParameters | I18n parameters. | |
| protected array | $i18nFieldNameParameters | Parameters holding i18n field names. | 
Methods
                    bool
                
                
                    validateWhenEmpty()
        
                                            
                
            Returns TRUE if the rule should be executed when the input is empty and FALSE if not.
                    string
                
                
                    translateFieldName(string $field, string $package)
        
                                            
                Returns a translated field name.
from I18nAwareTrait
            
                    array
                
                
                    getI18nParameters(string $field, string $package)
        
                                            
                Gets the i18n parameters.
from I18nAwareTrait
            
                    string
                
                
                    getErrorMessage(string $field)
        
                                            
                
            Returns an error message.
                    string
                
                
                    getTranslatedErrorMessage(string $field, string $rule, string|null $package = null)
        
                                            
                Returns the translated error message.
from I18nAwareTrait
            
                    __construct(string $field)
        
                                            
                
            Constructor.
                    bool
                
                
                    validate(mixed $value, array $input)
        
                                            
                
            Returns TRUE if the rule succeeds and FALSE if not.
Details
        in DoesntValidateWhenEmptyTrait at         line 20
                            bool
    validateWhenEmpty()
        
    
    Returns TRUE if the rule should be executed when the input is empty and FALSE if not.
        in I18nAwareTrait at         line 42
                            I18nAwareInterface
    setI18n(I18n $i18n)
        
    
    Sets the I18n instance.
        in I18nAwareTrait at         line 56
                    protected        string
    translateFieldName(string $field, string $package)
        
    
    Returns a translated field name.
        in I18nAwareTrait at         line 77
                    protected        array
    getI18nParameters(string $field, string $package)
        
    
    Gets the i18n parameters.
        at         line 61
                            string
    getErrorMessage(string $field)
        
    
    Returns an error message.
        in I18nAwareTrait at         line 116
                            string
    getTranslatedErrorMessage(string $field, string $rule, string|null $package = null)
        
    
    Returns the translated error message.
        at         line 31
                            
    __construct(string $field)
        
    
    Constructor.
        at         line 53
                            bool
    validate(mixed $value, array $input)
        
    
    Returns TRUE if the rule succeeds and FALSE if not.