css = $css; $this->setAttribute('type', $type); } public static function constructFromAttributes($attr) { $cdata = trim(preg_replace('/^\s*\/\/\s*\z/', '$1', $attr)); return new static($cdata); } /** * @return string The type attribute. */ public function getType() { return $this->getAttribute('type'); } /** * @param $type The type attribute. * * @return $this This node instance, for call chaining. */ public function setType($type) { return $this->setAttribute('type', $type); } /** * @return string The CSS content. */ public function getCss() { return $this->css; } /** * Sets the CSS content. * * @param $css The new cdata content * * @return $this The node instance for call chaining */ public function setCss($css) { $this->css = $css; return $this; } /** * @SuppressWarnings(PHPMD.UnusedFormalParameter) * * @param SVGRasterizer $rasterizer */ public function rasterize(SVGRasterizer $rasterizer) { // Nothing to rasterize. // All properties passed through container's global styles. } }