Base
in package
implements
ICompound
Base class for compound DTOs.
Table of Contents
Interfaces
- ICompound
- Interface for compound data types
Properties
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() : ICompound
- setParent() : ICompound
Properties
$errors
private
array<string|int, mixed>
$errors
= []
$name
private
string
$name
$parent
private
ICompound|null
$parent
= null
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) : ICompound
Parameters
- $name : string
Return values
ICompoundsetParent()
public
setParent(Dto|null $parent) : ICompound
Parameters
- $parent : Dto|null