public function option($key, $value = null)
    {
        if (is_null($value)) {
            return $this->options[$key];
        }

        $this->options[$key] = $value;

        return $this;
    }
public function option($key, $value = null)
    {
        if (is_null($value)) {
            return $this->options[$key];
        }

        $this->options[$key] = $value;

        return $this;
    }
public function option ( $ key , $ value = null ) { if ( is_null ( $ value ) ) { return $ this -> options [ $ key ] ; } $ this -> options [ $ key ] = $ value ; return $ this ; }
Get or set option for grid.

@param string $key
@param mixed  $value

@return $this|mixed
Get or set option for grid .