public function style($style)
    {
        if (is_array($style)) {
            $style = implode('', array_map(function ($key, $val) {
                return "$key:$val";
            }, array_keys($style), array_values($style)));
        }

        if (is_string($style)) {
            $this->attributes['style'] = $style;
        }
    }
public function style($style)
    {
        if (is_array($style)) {
            $style = implode('', array_map(function ($key, $val) {
                return "$key:$val";
            }, array_keys($style), array_values($style)));
        }

        if (is_string($style)) {
            $this->attributes['style'] = $style;
        }
    }
public function style ( $ style ) { if ( is_array ( $ style ) ) { $ style = implode ( '' , array_map ( function ( $ key , $ val ) { return "$key:$val" ; } , array_keys ( $ style ) , array_values ( $ style ) ) ) ; } if ( is_string ( $ style ) ) { $ this -> attributes [ 'style' ] = $ style ; } }
Set style of the row.

@param array|string $style
Set style of the row .