public function setOptions(array $options = [], $reset = false)
    {
        //jeśli reset
        if ($reset) {
            $this->_options = [];
        }
        //dopełnianie tabeli opcji
        foreach ($options as $key => $value) {
            $this->setOption($key, $value);
        }
        return $this;
    }