Neuron-PHP

Base
in package
implements ICompound

Base class for compound DTOs.

Table of Contents

Interfaces

ICompound
Interface for compound data types

Properties

$errors  : array<string|int, mixed>
$name  : string
$parent  : ICompound|null

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

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

        
On this page

Search results