public function setOptions($options = []) { $this->options = []; $this->shortcuts = []; $this->addOptions($options); }