Пример #1
0
 /**
  * Renders a point.
  *
  * @param \Ivory\GoogleMap\Base\Point $point The point.
  *
  * @return string The JS output.
  */
 public function render(Point $point)
 {
     return sprintf('%s = new google.maps.Point(%s, %s);' . PHP_EOL, $point->getJavascriptVariable(), $point->getX(), $point->getY());
 }
Пример #2
0
 public function testYWithValidValue()
 {
     $this->point->setY(1);
     $this->assertSame(1, $this->point->getY());
 }