original_string: 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);
          }
      }
code: 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);
          }
      }
code_tokens: 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 ) ; } }
docstring: Checks if the type is correspondent
docstring_tokens: Checks if the type is correspondent