Example #1
0
File: Point.php Project: creof/geo
 /**
  * @param array|string|null $value
  * @param int|null          $srid
  */
 public function __construct($value = null, $srid = null)
 {
     parent::__construct($srid);
     $this->values = array(0, 0);
     if (null !== $value) {
         $this->set($value);
     }
 }
Example #2
0
 /**
  * @param LineString[]|array[] $rings
  * @param int|null             $srid
  */
 public function __construct(array $rings = array(), $srid = null)
 {
     parent::__construct($srid);
     $this->setRings($rings);
 }