public function __construct($width = null, $height = null) { parent::__construct('svg', array('width', 'height', 'viewBox')); if ($width != null) { $this->set('width', $width); } if ($height != null) { $this->set('height', $height); } }
public function createArray() { $data = $this->createData(); $this->set("d", $data); return parent::createArray(); }