Annotation
abstract class Annotation
Methods
__construct(Shape $shape, array $points, array $labels)
No description
array
getInsertData(int $id)
Get the array of metadata that can be used for Model::insert();
void
validate()
Validate the labels.
setPointsAttribute(array $points)
Round the floats of the points array to 2 decimals.
Details
at line 16
__construct(Shape $shape, array $points, array $labels)
No description
at line 36
array
getInsertData(int $id)
Get the array of metadata that can be used for Model::insert();
at line 49
void
validate()
Validate the labels.
at line 59
protected
setPointsAttribute(array $points)
Round the floats of the points array to 2 decimals.