コード例 #1
0
 /**
  * Clone Polygon
  */
 public function __clone()
 {
     parent::__clone();
     $cloneCoordinate = array();
     foreach ($this->getCoordinates() as $coordinate) {
         $cloneCoordinate[] = clone $coordinate;
     }
     $this->coordinates = new \ArrayObject($cloneCoordinate);
 }
コード例 #2
0
 /**
  * Clone Rectangle
  */
 public function __clone()
 {
     parent::__clone();
     $this->coordinate = clone $this->coordinate;
     $this->dimension = clone $this->dimension;
 }
コード例 #3
0
 /**
  * Clone Arc
  */
 public function __clone()
 {
     parent::__clone();
     $this->center = clone $this->center;
     $this->dimension = clone $this->dimension;
 }