Documentation

UpdateValidatorMethod
in package

FinalYes

Indicates that the method is an update validator handle. An update validator handle is associated with an update method and runs before the associated update handle. If the update validator throws an exception, the update handle is not called and the update is not persisted in history.

Tags
Annotation
NamedArgumentConstructor
Target

({ "METHOD" })

Table of Contents

Properties

$forUpdate  : string

Methods

__construct()  : mixed

Attributes

#[Attribute]

#[Attribute]

#[NamedArgumentConstructor]

#[NamedArgumentConstructor]

Properties

Methods

__construct()

public __construct(non-empty-string $forUpdate) : mixed
Parameters
$forUpdate : non-empty-string

Name of the update handler the validator should be used for. Be careful about names that contain special characters. These names can be used as metric tags. And systems like prometheus ignore metrics which have tags with unsupported characters.


        
On this page

Search results