Validator
    
            
            in package
            
        
    
    
    
        
            Class Validator Validates data
Tags
Table of Contents
- validateFile() : string
 - Validate a file
 - validatePassword() : bool
 - Validate a password
 - validateStrings() : bool
 - Validate some strings
 
Methods
validateFile()
Validate a file
    public
            static    validateFile(Container $container, UploadedFile $file, array<string|int, mixed> $finfo, string $type) : string
    
        Parameters
- $container : Container
 - $file : UploadedFile
 - $finfo : array<string|int, mixed>
 - $type : string
 - 
                    
usage of file, user or item
 
Return values
string —message
validatePassword()
Validate a password
    public
            static    validatePassword(string $password, string $password_confirm) : bool
    
        Parameters
- $password : string
 - $password_confirm : string
 - 
                    
confirmation, can be equals to password
 
Return values
bool —true if valid
validateStrings()
Validate some strings
    public
            static    validateStrings(array<string|int, mixed> $strings) : bool
    
        Parameters
- $strings : array<string|int, mixed>
 
Return values
bool —true if valid