final class StructuredGenerator
Restricted visibility: declared "@visibility root". Code outside that scope must not name this declaration.

Formats PostgreSQL binary, interval, JSON and array values.

Methods§

public function generateBytea(Generator $faker): string

Generates bytea.

Parameters

$fakerGenerator

Returns

string
Test cases 1
Called from 1
Calls 4
public function generateInterval(Generator $faker): string

Generates interval.

Parameters

$fakerGenerator

Returns

string
Test cases 1
Called from 1
Calls 2
  • method-call Generator::randomElement() line 34
  • method-call Generator::numberBetween() line 35
public function generateJson(Generator $faker): string
public function generateIntArray(Generator $faker): string

Generates int array.

Parameters

$fakerGenerator

Returns

string
Test cases 1
Called from 1
Calls 2
  • method-call Generator::numberBetween() line 58
  • function-call implode line 64
public function generateTextArray(Generator $faker): string

Generates text array.

Parameters

$fakerGenerator

Returns

string
Test cases 1
Called from 1
Calls 3
  • method-call Generator::numberBetween() line 72
  • method-call Generator::word() line 75
  • function-call implode line 78
public function generateCidr(Generator $faker): string

Generates an IPv4 network in CIDR notation with no bits set right of the mask.

Parameters

$fakerGenerator

Returns

string A /24 network such as `192.0.2.0/24`
Test cases 1
Called from 1
Calls 3

Test cases 16§

Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.

Dedicated tests 6
Other tests reaching this symbol 10

Relations§

Instantiated in 7
Method calls 7