TimeZone
class TimeZone extends Rule implements RuleInterface
Time zone rule.
Traits
                    I18n aware trait.
                
            
                    Doesn't validate when empty trait.
                
            Properties
| protected I18n | $i18n | I18n. | from I18nAwareTrait | 
| protected int | $group | Time zone group. | |
| protected string|null | $country | Country code. | 
Methods
                    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
                
                
                    getTranslatedErrorMessage(string $field, string $rule, string|null $package = null)
        
                                            
                Returns the translated error message.
from I18nAwareTrait
            
                    bool
                
                
                    validateWhenEmpty()
        
                                            
                
            Returns TRUE if the rule should be executed when the input is empty and FALSE if not.
                    __construct(int $group = DateTimeZone::ALL, string|null $country = null)
        
                                            
                
            Constructor.
                    bool
                
                
                    validate(mixed $value, array $input)
        
                                            
                
            Returns TRUE if the rule succeeds and FALSE if not.
                    string
                
                
                    getErrorMessage(string $field)
        
                                            
                
            Returns an error message.
Details
        in I18nAwareTrait at         line 44
                            RuleInterface
    setI18n(I18n $i18n)
        
    
    Sets the I18n instance.
        in I18nAwareTrait at         line 58
                    protected        string
    translateFieldName(string $field, string $package)
        
    
    Returns a translated field name.
        in I18nAwareTrait at         line 79
                    protected        array
    getI18nParameters(string $field, string $package)
        
    
    Gets the i18n parameters.
        in I18nAwareTrait at         line 110
                            string
    getTranslatedErrorMessage(string $field, string $rule, string|null $package = null)
        
    
    Returns the translated error message.
        in DoesntValidateWhenEmptyTrait at         line 22
                            bool
    validateWhenEmpty()
        
    
    Returns TRUE if the rule should be executed when the input is empty and FALSE if not.
        at         line 42
                            
    __construct(int $group = DateTimeZone::ALL, string|null $country = null)
        
    
    Constructor.
        at         line 52
                            bool
    validate(mixed $value, array $input)
        
    
    Returns TRUE if the rule succeeds and FALSE if not.
        at         line 60
                            string
    getErrorMessage(string $field)
        
    
    Returns an error message.