css = $css; $this->setAttribute('type', $type); } public static function constructFromAttributes($attr) { $cdata = trim(preg_replace('/^\s*\/\/\s*\z/', '$1', $attr)); return new static($cdata); } public function getType() { return $this->getAttribute('type'); } public function setType($type) { return $this->setAttribute('type', $type); } public function getCss() { return $this->css; } public function setCss($css) { $this->css = $css; return $this; } public function rasterize(SVGRasterizer $rasterizer) { } }