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

Constructs valid Well Known Text geometry literals.

Methods§

public function generateLineString(Generator $faker): string

Generates line string.

Parameters

$fakerGenerator

Returns

string
Test cases 1
Called from 2
Calls 5
  • method-call Generator::numberBetween() line 31
  • function-call sprintf line 34
  • method-call Generator::longitude() line 34
  • method-call Generator::latitude() line 34
  • function-call implode line 36
public function generatePolygon(Generator $faker): string

Generates polygon.

Parameters

$fakerGenerator

Returns

string
Test cases 1
Called from 2
Calls 5
  • method-call Generator::longitude() line 44
  • method-call Generator::latitude() line 45
  • method-call Generator::randomFloat() line 46
  • function-call sprintf line 49
  • function-call implode line 56
public function generateMultiPoint(Generator $faker): string

Generates multi point.

Parameters

$fakerGenerator

Returns

string
Test cases 1
Called from 1
Calls 5
  • method-call Generator::numberBetween() line 64
  • function-call sprintf line 67
  • method-call Generator::longitude() line 67
  • method-call Generator::latitude() line 67
  • function-call implode line 69
public function generateMultiLineString(Generator $faker): string

Generates multi line string.

Parameters

$fakerGenerator

Returns

string
Test cases 1
Called from 1
Calls 5
  • method-call Generator::numberBetween() line 77
  • function-call sprintf line 83
  • method-call Generator::longitude() line 83
  • method-call Generator::latitude() line 83
  • function-call implode line 85
public function generateMultiPolygon(Generator $faker): string

Generates multi polygon.

Parameters

$fakerGenerator

Returns

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

Test cases 24§

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

Dedicated tests 7
Other tests reaching this symbol 17

Relations§

Instantiated in 8
Method calls 8