/** * @return array */ public function toArray() { return array('centroid' => parent::toArray(), 'points' => $this->getPoints()); }