class LineString
Encapsulates a set of lines, characterized by a sequence of Dse\Point‘s in the xy-plane. It corresponds to the org.apache.cassandra.db.marshal.LineStringType column type in DSE.
Extends
Methods
__construct
(array $points )
Construct a Dse\LineString with some Dse\Point‘s.
To create an empty Dse\LineString:
$lineString = new Dse\LineString();
To create with some points on the fly:
$p1 = new Dse\Point(2, 3);
$p2 = new Dse\Point(4, 5);
$lineString = new Dse\LineString($p1, $p2);
To create with an array of points by unrolling into varargs:
$points = [new Dse\Point(2, 3), new Dse\Point(4, 5)];
$lineString = new Dse\LineString(...$points);
Type\Custom type
( )The type of this value.
array points
( )string wkt
( )string