/** * @param array $style * * @return $this */ public function setStyle($style) { if (!is_string($style)) { $style = json_encode($style); } $this->entity->setStyle($style); return $this; }