3 namespace League\HTMLToMarkdown;
10 * @param array $config
12 public function __construct(array $config = array())
14 $this->config = $config;
18 * @param array $config
20 public function merge(array $config = array())
22 $this->config = array_replace_recursive($this->config, $config);
26 * @param array $config
28 public function replace(array $config = array())
30 $this->config = $config;
37 public function setOption($key, $value)
39 $this->config[$key] = $value;
43 * @param string|null $key
44 * @param mixed|null $default
48 public function getOption($key = null, $default = null)
54 if (!isset($this->config[$key])) {
58 return $this->config[$key];