/**
* Adds a style to the style set.
*
* @param Style $style The style to add.
*
* @return static The current instance.
*
* @see StyleSet::add()
*/
public function addStyle(Style $style)
{
if (!$this->styleSet) {
$this->styleSet = new DefaultStyleSet();
}
$this->styleSet->add($style);
return $this;
}