public function attributes($attributes)
    {
        if (is_array($this->attributes) and is_array($attributes)) {
            $attributes = array_merge($this->attributes, $attributes);
        }
        $this->attributes = $attributes;

        return $this;
    }
public function attributes($attributes)
    {
        if (is_array($this->attributes) and is_array($attributes)) {
            $attributes = array_merge($this->attributes, $attributes);
        }
        $this->attributes = $attributes;

        return $this;
    }
public function attributes ( $ attributes ) { if ( is_array ( $ this -> attributes ) and is_array ( $ attributes ) ) { $ attributes = array_merge ( $ this -> attributes , $ attributes ) ; } $ this -> attributes = $ attributes ; return $ this ; }
set attributes for widget
@param $attributes
@return $this
set attributes for widget