public function setOption($option, $value) { if (array_key_exists($option, $this->options)) { $this->options[$option] = $value; } else { throw new Exception('Option "' . $option . '" not found for this converter!'); } return $this; }