FieldGeneratorInterface

Interface for field value generators

Internal

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|int

match()

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

Return values
bool

        
On this page

Search results