protected function setOption($name, $value)
    {
        if ($value instanceof Closure) {
            $this->callbacks[$name] = $value;
        } else {
            $this->options[$name] = $value;
        }

        return $this;
    }