Exemplo n.º 1
0
 public function buildElectionPoint(Point $point)
 {
     $user_polygons = $this->m()->userPolygonMapper()->byPoint($point);
     $consensus_point = ElectionPoint::build($point, $user_polygons);
     return $consensus_point;
 }
Exemplo n.º 2
0
 /**
  * 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;
 }