public function validate ($value): void
    {
        switch ($this -> sqlType) {
            case 'ENUM':
            case 'SET':
                // Not implemented;
                break;

            default:
                $common = self::TYPES[$this -> sqlType];
                if (!$this -> size)
                    $this -> size = $common;
                else $this -> size = min($this -> size, $common);
                $this -> getValidator()::apply('strlen', $value, $this -> size);
        }
    }
public function validate ($value): void
    {
        switch ($this -> sqlType) {
            case 'ENUM':
            case 'SET':
                // Not implemented;
                break;

            default:
                $common = self::TYPES[$this -> sqlType];
                if (!$this -> size)
                    $this -> size = $common;
                else $this -> size = min($this -> size, $common);
                $this -> getValidator()::apply('strlen', $value, $this -> size);
        }
    }
public function validate ( $ value ) : void { switch ( $ this -> sqlType ) { case 'ENUM' : case 'SET' : // Not implemented; break ; default : $ common = self :: TYPES [ $ this -> sqlType ] ; if ( ! $ this -> size ) $ this -> size = $ common ; else $ this -> size = min ( $ this -> size , $ common ) ; $ this -> getValidator ( ) :: apply ( 'strlen' , $ value , $ this -> size ) ; } }
Checks if the type is correspondent
Checks if the type is correspondent