/** * Interface to jsWriter option setting * @throws \BadMethodCallException * @return \Altamira\Chart provides fluent interface */ public function useCursor() { //@codeCoverageIgnoreStart if (!$this->jsWriter instanceof \AltaMira\JsWriter\Ability\Cursorable) { throw new \BadMethodCallException("JsWriter cannot use cursor"); } //@codeCoverageIgnoreEnd $this->jsWriter->useCursor(); return $this; }