public function addStyles(StyleCollection $styles) { $this->styleCollection = $styles; return $this; }