Neuron-PHP

Property
in package

Table of Contents

Properties

$errors  : array<string|int, mixed>
$name  : string
$parent  : ICompound
$required  : bool
$type  : string
$typeValidators  : array<string|int, mixed>
$validators  : Collection
$value  : mixed

Methods

__construct()  : mixed
getAsJson()  : string
getName()  : string
getParent()  : ICompound
getType()  : string
getValue()  : mixed
isRequired()  : bool
setEnum()  : Property
Set allowed values for enum validation.
setLengthRange()  : $this
setName()  : Property
setParent()  : Property
setPattern()  : Property
setRequired()  : Property
setType()  : Property
setValue()  : Property
setValueRange()  : $this
validate()  : void
getArrayAsJson()  : string
getDtoAsJson()  : string
validateRequired()  : bool

Properties

$errors

private array<string|int, mixed> $errors

$typeValidators

private array<string|int, mixed> $typeValidators

Methods

__construct()

public __construct() : mixed

getAsJson()

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

getName()

public getName() : string
Return values
string

getType()

public getType() : string
Return values
string

isRequired()

public isRequired() : bool
Return values
bool

setEnum()

Set allowed values for enum validation.

public setEnum(array<string|int, mixed> $allowedValues[, bool $strict = true ]) : Property
Parameters
$allowedValues : array<string|int, mixed>

Array of allowed values

$strict : bool = true

Whether to use strict comparison (default: true)

Return values
Property

setLengthRange()

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

setType()

public setType(string $type) : Property
Parameters
$type : string
Tags
throws
Exception
Return values
Property

setValueRange()

public setValueRange(mixed $min, mixed $max) : $this
Parameters
$min : mixed
$max : mixed
Return values
$this

getArrayAsJson()

protected getArrayAsJson() : string
Tags
throws
Exception
Return values
string

getDtoAsJson()

protected getDtoAsJson() : string
Return values
string

validateRequired()

private validateRequired() : bool
Return values
bool

        
On this page

Search results