src/ORM/ValidationResult.php
public function combineAnd(ValidationResult $other)
    {
        $this->isValid = $this->isValid && $other->isValid();
        $this->messages = array_merge($this->messages, $other->getMessages());
        return $this;
    }
public function combineAnd(ValidationResult $other)
    {
        $this->isValid = $this->isValid && $other->isValid();
        $this->messages = array_merge($this->messages, $other->getMessages());
        return $this;
    }
public function combineAnd ( ValidationResult $ other ) { $ this -> isValid = $ this -> isValid && $ other -> isValid ( ) ; $ this -> messages = array_merge ( $ this -> messages , $ other -> getMessages ( ) ) ; return $ this ; }
Combine this Validation Result with the ValidationResult given in other.
It will be valid if both this and the other result are valid.
This object will be modified to contain the new validation information.

@param ValidationResult $other the validation result object to combine
@return $this
Combine this Validation Result with the ValidationResult given in other . It will be valid if both this and the other result are valid . This object will be modified to contain the new validation information .