public function style($styles)
    {
        if (is_string($styles)) {
            return $this->style([$styles]);
        }

        $styles = array_map(function ($style) {
            return 'box-'.$style;
        }, $styles);

        $this->class = $this->class.' '.implode(' ', $styles);

        return $this;
    }
public function style($styles)
    {
        if (is_string($styles)) {
            return $this->style([$styles]);
        }

        $styles = array_map(function ($style) {
            return 'box-'.$style;
        }, $styles);

        $this->class = $this->class.' '.implode(' ', $styles);

        return $this;
    }
public function style ( $ styles ) { if ( is_string ( $ styles ) ) { return $ this -> style ( [ $ styles ] ) ; } $ styles = array_map ( function ( $ style ) { return 'box-' . $ style ; } , $ styles ) ; $ this -> class = $ this -> class . ' ' . implode ( ' ' , $ styles ) ; return $ this ; }
Set box style.

@param string $styles

@return $this|Box
Set box style .