/** * * @param $geometry object Geometry instance * @param $attributes array * @param $style array */ public function __construct($geometry, $attributes = array(), $style = array()) { $this->geometry = $geometry; $this->attributes = $attributes; $this->style = $style; $this->id = Util::createUniqueID(__CLASS__); }
public function __construct($class = "geometry") { $this->id = Util::createUniqueID($class); }