public function buildElectionPoint(Point $point) { $user_polygons = $this->m()->userPolygonMapper()->byPoint($point); $consensus_point = ElectionPoint::build($point, $user_polygons); return $consensus_point; }
/** * get all UserPolygons that intersect 'point' and return an ElectionPoint * * @param mixed a Point * @return mixed an ElectionPoint */ public function getElectionPoint(Point $point) { $user_polygons = $this->byPoint($point); $election_point = ElectionPoint::build($point, $user_polygons); return $election_point; }