class GisFactory (View source)

Factory class that handles the creation of geometric objects.

Methods

static GisGeometry|false
factory(string $type)

Returns the singleton instance of geometric class of the given type.

Details

static GisGeometry|false factory(string $type)

Returns the singleton instance of geometric class of the given type.

Parameters

string $type

type of the geometric object

Return Value

GisGeometry|false

the singleton instance of geometric class of the given type