Neuron-PHP

Collection extends Base
in package

Base class for compound DTOs.

Table of Contents

Properties

$children  : array<string|int, mixed>
$errors  : array<string|int, mixed>
$itemTemplate  : Property
$name  : string
$parent  : ICompound|null
$validRange  : NumericRange|null

Methods

addChild()  : Collection
addErrors()  : ICompound
Adds a validation error to the list.
clearErrors()  : void
Resets the error list.
getAsJson()  : string
getChild()  : null|ICompound|Property
getChildren()  : array<string|int, mixed>
getErrors()  : array<string|int, mixed>
Returns a list of validation errors for all parameter values.
getItemTemplate()  : Property
getName()  : string
getParent()  : ICompound|null
setItemTemplate()  : Collection
setName()  : ICompound
setParent()  : ICompound
setRange()  : $this

Properties

$children

private array<string|int, mixed> $children = []

$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

getAsJson()

public getAsJson() : string
Tags
throws
Exception
Return values
string

getChildren()

public getChildren() : array<string|int, mixed>
Tags
throws
Exception
Return values
array<string|int, mixed>

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

setRange()

public setRange(int $min, int $max) : $this
Parameters
$min : int
$max : int
Return values
$this

        
On this page

Search results