public function addStyle(Style $style)
    {
        if (!$this->styleSet) {
            $this->styleSet = new DefaultStyleSet();
        }

        $this->styleSet->add($style);

        return $this;
    }
public function addStyle(Style $style)
    {
        if (!$this->styleSet) {
            $this->styleSet = new DefaultStyleSet();
        }

        $this->styleSet->add($style);

        return $this;
    }
public function addStyle ( Style $ style ) { if ( ! $ this -> styleSet ) { $ this -> styleSet = new DefaultStyleSet ( ) ; } $ this -> styleSet -> add ( $ style ) ; return $ this ; }
Adds a style to the style set.

@param Style $style The style to add.

@return static The current instance.

@see StyleSet::add()
Adds a style to the style set .