LangGenerator
in package
The lang generator class is used to generate lang file from an entity descriptor
Tags
Table of Contents
Properties
- $testedValues : array<string|int, mixed>
- Some values to test if field is valid
Methods
- getErrorsForField() : array<string|int, InvalidFieldException>
- Get all exception this field could generate
- getRows() : array<string|int, InvalidFieldException>
- Get all exception string this entity could generate
Properties
$testedValues
Some values to test if field is valid
public
static array<string|int, mixed>
$testedValues
= array(null, '', '0', 'string', '1.997758887755445', '-974455277432344345647573654743352', '974455277432344345647573654743352')
Methods
getErrorsForField()
Get all exception this field could generate
public
getErrorsForField(EntityDescriptor $descriptor, string $field) : array<string|int, InvalidFieldException>
Parameters
- $descriptor : EntityDescriptor
- $field : string
Return values
array<string|int, InvalidFieldException>getRows()
Get all exception string this entity could generate
public
getRows(EntityDescriptor $descriptor) : array<string|int, InvalidFieldException>
Parameters
- $descriptor : EntityDescriptor
Return values
array<string|int, InvalidFieldException> —A set of exception