public function getPoints() { $points = []; foreach ($this->points as $point) { $points[] = $point->toArray(); } return $points; }