ProcessingRule

A processing Rule contains information for property mapping and validation.

Scope: frontend This class is NOT meant to be sub classed by developers.

Internal
Attributes
#[Autoconfigure]
$public: true
$shared: false

Table of Contents

Properties

$dataType  : string
The target data type the data should be converted to
$processingMessages  : Result
$propertyMapper  : PropertyMapper
$propertyMappingConfiguration  : PropertyMappingConfiguration
$validator  : ConjunctionValidator

Methods

__construct()  : mixed
Constructs this processing rule
addValidator()  : mixed
filterValidators()  : void
Filters validators based on a closure
getDataType()  : string
getProcessingMessages()  : Result
getPropertyMappingConfiguration()  : PropertyMappingConfiguration
getValidators()  : SplObjectStorage
Returns the child validators of the ConjunctionValidator that is bound to this processing rule
process()  : mixed
removeAllValidators()  : void
Initializes a new validator container
removeValidator()  : mixed
Removes the specified validator.
setDataType()  : mixed

Properties

$dataType

The target data type the data should be converted to

protected string $dataType

Methods

filterValidators()

Filters validators based on a closure

public filterValidators(Closure $filter) : void
Parameters
$filter : Closure
Internal

getDataType()

public getDataType() : string
Internal
Return values
string

getValidators()

Returns the child validators of the ConjunctionValidator that is bound to this processing rule

public getValidators() : SplObjectStorage
Internal
Return values
SplObjectStorage

process()

public process(mixed $value) : mixed
Parameters
$value : mixed
Internal

removeAllValidators()

Initializes a new validator container

public removeAllValidators() : void
Internal

setDataType()

public setDataType(string $dataType) : mixed
Parameters
$dataType : string
Internal

        
On this page

Search results