lib/Core/Validator/LayoutResolverValidator.php
public function validateRuleUpdateStruct(RuleUpdateStruct $ruleUpdateStruct): void
    {
        if ($ruleUpdateStruct->layoutId !== null) {
            $this->validate(
                $ruleUpdateStruct->layoutId,
                [
                    new Constraints\NotBlank(),
                    new Constraints\Type(['type' => 'scalar']),
                ],
                'layoutId'
            );
        }

        if ($ruleUpdateStruct->comment !== null) {
            $this->validate(
                $ruleUpdateStruct->comment,
                [
                    new Constraints\Type(['type' => 'string']),
                ],
                'comment'
            );
        }
    }
public function validateRuleUpdateStruct(RuleUpdateStruct $ruleUpdateStruct): void
    {
        if ($ruleUpdateStruct->layoutId !== null) {
            $this->validate(
                $ruleUpdateStruct->layoutId,
                [
                    new Constraints\NotBlank(),
                    new Constraints\Type(['type' => 'scalar']),
                ],
                'layoutId'
            );
        }

        if ($ruleUpdateStruct->comment !== null) {
            $this->validate(
                $ruleUpdateStruct->comment,
                [
                    new Constraints\Type(['type' => 'string']),
                ],
                'comment'
            );
        }
    }
public function validateRuleUpdateStruct ( RuleUpdateStruct $ ruleUpdateStruct ) : void { if ( $ ruleUpdateStruct -> layoutId !== null ) { $ this -> validate ( $ ruleUpdateStruct -> layoutId , [ new Constraints \ NotBlank ( ) , new Constraints \ Type ( [ 'type' => 'scalar' ] ) , ] , 'layoutId' ) ; } if ( $ ruleUpdateStruct -> comment !== null ) { $ this -> validate ( $ ruleUpdateStruct -> comment , [ new Constraints \ Type ( [ 'type' => 'string' ] ) , ] , 'comment' ) ; } }
Validates the provided rule update struct.

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