Neuron-PHP

ICompound

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
ICompound

clearErrors()

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
string

setName()

public setName(string $name) : $this
Parameters
$name : string
Return values
$this

        
On this page

Search results