original_string: public function isValid()
      {
          if ($this->valid === null) {
              $this->valid = true;
  
              if (sizeof($this->validators) > 0) {
                  foreach ($this->validators as $validator) {
                      if (!$validator->isValid()) {
                          $this->errors[] = $validator->getErrorMessage();
                          $this->valid = false;
                      }
                  }
              }
          }
  
          return $this->valid;
      }
code: public function isValid()
      {
          if ($this->valid === null) {
              $this->valid = true;
  
              if (sizeof($this->validators) > 0) {
                  foreach ($this->validators as $validator) {
                      if (!$validator->isValid()) {
                          $this->errors[] = $validator->getErrorMessage();
                          $this->valid = false;
                      }
                  }
              }
          }
  
          return $this->valid;
      }
code_tokens: public function isValid ( ) { if ( $ this -> valid === null ) { $ this -> valid = true ; if ( sizeof ( $ this -> validators ) > 0 ) { foreach ( $ this -> validators as $ validator ) { if ( ! $ validator -> isValid ( ) ) { $ this -> errors [ ] = $ validator -> getErrorMessage ( ) ; $ this -> valid = false ; } } } } return $ this -> valid ; }
docstring: Check if this field is valid or not.
  It will cache it's result.
  If a new validator is added, it's cached value is reset.
  
  @return boolean
docstring_tokens: Check if this field is valid or not . It will cache it s result . If a new validator is added it s cached value is reset .