src/Schema.php
private function validateAllOf($value, ValidationField $field) {
        $allOfValidation = new ValidationField(
            $field->getValidation(),
            $this->resolveAllOfTree($field),
            '',
            $field->getSchemaPath(),
            $field->getOptions()
        );

        return $this->validateField($value, $allOfValidation);
    }
private function validateAllOf($value, ValidationField $field) {
        $allOfValidation = new ValidationField(
            $field->getValidation(),
            $this->resolveAllOfTree($field),
            '',
            $field->getSchemaPath(),
            $field->getOptions()
        );

        return $this->validateField($value, $allOfValidation);
    }
private function validateAllOf ( $ value , ValidationField $ field ) { $ allOfValidation = new ValidationField ( $ field -> getValidation ( ) , $ this -> resolveAllOfTree ( $ field ) , '' , $ field -> getSchemaPath ( ) , $ field -> getOptions ( ) ) ; return $ this -> validateField ( $ value , $ allOfValidation ) ; }
Validate allof tree

@param mixed $value The value to validate.
@param ValidationField $field The validation results to add.
@return array|Invalid Returns an array or invalid if validation fails.
@throws RefNotFoundException Throws an exception if the array has an items `$ref` that cannot be found.
Validate allof tree