lib/Core/Validator/LayoutResolverValidator.php
public function validateRuleMetadataUpdateStruct(RuleMetadataUpdateStruct $ruleUpdateStruct): void
    {
        if ($ruleUpdateStruct->priority !== null) {
            $this->validate(
                $ruleUpdateStruct->priority,
                [
                    new Constraints\NotBlank(),
                    new Constraints\Type(['type' => 'int']),
                ],
                'priority'
            );
        }
    }
public function validateRuleMetadataUpdateStruct(RuleMetadataUpdateStruct $ruleUpdateStruct): void
    {
        if ($ruleUpdateStruct->priority !== null) {
            $this->validate(
                $ruleUpdateStruct->priority,
                [
                    new Constraints\NotBlank(),
                    new Constraints\Type(['type' => 'int']),
                ],
                'priority'
            );
        }
    }
public function validateRuleMetadataUpdateStruct ( RuleMetadataUpdateStruct $ ruleUpdateStruct ) : void { if ( $ ruleUpdateStruct -> priority !== null ) { $ this -> validate ( $ ruleUpdateStruct -> priority , [ new Constraints \ NotBlank ( ) , new Constraints \ Type ( [ 'type' => 'int' ] ) , ] , 'priority' ) ; } }
Validates the provided rule metadata update struct.

@throws \Netgen\BlockManager\Exception\Validation\ValidationException If the validation failed
Validates the provided rule metadata update struct .