public function setStyles(array $styles)
    {
        $this->styles = [];

        foreach ($styles as $style) {
            $this->addStyle($style);
        }
    }
public function setStyles(array $styles)
    {
        $this->styles = [];

        foreach ($styles as $style) {
            $this->addStyle($style);
        }
    }
public function setStyles ( array $ styles ) { $ this -> styles = [ ] ; foreach ( $ styles as $ style ) { $ this -> addStyle ( $ style ) ; } }
Set styles.

@param array $styles
Set styles .