AbstractFieldGenerator

AbstractYes

Implement some standard stuff

Internal

Table of Contents

Properties

$matchArray  : array<string|int, mixed>

Methods

match()  : bool
General match implementation checks input array against $this->matchArray.
checkMatchArray()  : bool
Recursive compare of $data with $matchArray.

Properties

$matchArray

protected array<string|int, mixed> $matchArray = []

If all of these settings are identical to given values, match is true

Methods

match()

General match implementation checks input array against $this->matchArray.

public match(array<string|int, mixed> $data) : bool

If all keys and values of matchArray exist in $data and are identical, this generator matches.

Parameters
$data : array<string|int, mixed>
Return values
bool

checkMatchArray()

Recursive compare of $data with $matchArray.

protected checkMatchArray(array<string|int, mixed> $data, array<string|int, mixed> $matchArray) : bool
Parameters
$data : array<string|int, mixed>

Given data

$matchArray : array<string|int, mixed>

Part to mach against

Return values
bool

        
On this page

Search results