public function addStyles(array $styles)
    {
        if (!$this->styleSet) {
            $this->styleSet = new DefaultStyleSet();
        }

        $this->styleSet->merge($styles);

        return $this;
    }
public function addStyles(array $styles)
    {
        if (!$this->styleSet) {
            $this->styleSet = new DefaultStyleSet();
        }

        $this->styleSet->merge($styles);

        return $this;
    }
public function addStyles ( array $ styles ) { if ( ! $ this -> styleSet ) { $ this -> styleSet = new DefaultStyleSet ( ) ; } $ this -> styleSet -> merge ( $ styles ) ; return $ this ; }
Adds multiple styles to the style set.

@param Style[] $styles The styles to add.

@return static The current instance.

@see StyleSet::merge()
Adds multiple styles to the style set .