Neos\Flow\Validation\Validator\GenericObjectValidator::isValid PHP Method

isValid() protected method

Checks if the given value is valid according to the property validators.
protected isValid ( mixed $object ) : void
$object mixed The value that should be validated
return void
    protected function isValid($object)
    {
        $messages = new ErrorResult();
        foreach ($this->propertyValidators as $propertyName => $validators) {
            $propertyValue = $this->getPropertyValue($object, $propertyName);
            $result = $this->checkProperty($propertyValue, $validators);
            if ($result !== null) {
                $messages->forProperty($propertyName)->merge($result);
            }
        }
        $this->result = $messages;
    }