src/Field/FieldAbstract.php
public function isValid()
    {
        $this->errorMessages = [];
        $this->validatorCollection->rewind();
        while ($this->validatorCollection->valid()) {
            $this->checkForErrors($this->validatorCollection->current());
            $this->validatorCollection->next();
        }
        $count = count($this->errorMessages);
        return $count == 0;
    }
public function isValid()
    {
        $this->errorMessages = [];
        $this->validatorCollection->rewind();
        while ($this->validatorCollection->valid()) {
            $this->checkForErrors($this->validatorCollection->current());
            $this->validatorCollection->next();
        }
        $count = count($this->errorMessages);
        return $count == 0;
    }
public function isValid ( ) { $ this -> errorMessages = [ ] ; $ this -> validatorCollection -> rewind ( ) ; while ( $ this -> validatorCollection -> valid ( ) ) { $ this -> checkForErrors ( $ this -> validatorCollection -> current ( ) ) ; $ this -> validatorCollection -> next ( ) ; } $ count = count ( $ this -> errorMessages ) ; return $ count == 0 ; }
Runs the checkForErrors method for each field, which adds to errorMessages if invalid

@return bool
@throws Exception If validation of $value is impossible
Runs the checkForErrors method for each field which adds to errorMessages if invalid