code: public function setStyle($style) : self
      {
          if (is_array($style) && sizeof($style)) {
              $finalStyle = implode(';', $style);
          } elseif (is_string($style)) {
              $finalStyle = $style;
          } else {
              $finalStyle = '';
          }
  
          return $this->addAttribute('style', trim($finalStyle, ';'));
      }
docs: @param array|string $style
  
  @return $this|self