FieldGeneratorInterface
Interface for field value generators
Table of Contents
Methods
- generate() : string|int
- Returns the generated value to be inserted into DB for this field
- match() : bool
- Return true if this FieldGenerator matches
Methods
generate()
Returns the generated value to be inserted into DB for this field
public
generate(array<string|int, mixed> $data) : string|int
Parameters
- $data : array<string|int, mixed>
Return values
string|intmatch()
Return true if this FieldGenerator matches
public
match(array<string|int, mixed> $data) : bool
Parameters
- $data : array<string|int, mixed>
-
See RecordData generate() for details on this array