ICompound
in
Interface for compound data types
Compound data types are DTOs or arrays.
Table of Contents
Methods
- addErrors() : ICompound
- Adds a validation error to the list.
- clearErrors() : void
- Resets the error list.
- getErrors() : array<string|int, mixed>
- Returns a list of validation errors for all parameter values.
- getName() : string
- getParent() : ICompound|null
- setName() : $this
- setParent() : ICompound
Methods
addErrors()
Adds a validation error to the list.
public
addErrors(array<string|int, mixed> $errors) : ICompound
Parameters
- $errors : array<string|int, mixed>
Return values
ICompoundclearErrors()
Resets the error list.
public
clearErrors() : void
getErrors()
Returns a list of validation errors for all parameter values.
public
getErrors() : array<string|int, mixed>
Return values
array<string|int, mixed>getName()
public
getName() : string
Return values
stringgetParent()
public
getParent() : ICompound|null
Return values
ICompound|nullsetName()
public
setName(string $name) : $this
Parameters
- $name : string
Return values
$thissetParent()
public
setParent(Dto|null $parent) : ICompound
Parameters
- $parent : Dto|null