src/Nodes/SVGNode.php
public function setStyle($name, $value)
    {
        $value = (string) $value;
        if (strlen($value) === 0) {
            unset($this->styles[$name]);
            return $this;
        }
        $this->styles[$name] = $value;
        return $this;
    }
public function setStyle($name, $value)
    {
        $value = (string) $value;
        if (strlen($value) === 0) {
            unset($this->styles[$name]);
            return $this;
        }
        $this->styles[$name] = $value;
        return $this;
    }
public function setStyle ( $ name , $ value ) { $ value = ( string ) $ value ; if ( strlen ( $ value ) === 0 ) { unset ( $ this -> styles [ $ name ] ) ; return $ this ; } $ this -> styles [ $ name ] = $ value ; return $ this ; }
Defines a style on this node. A value of null or the empty string will
unset the property.

@param string      $name  The name of the style to set.
@param string|null $value The new style value.

@return $this This node instance, for call chaining.
Defines a style on this node . A value of null or the empty string will unset the property .