public function getOption($name) { if (property_exists($this, $name)) { return $this->{$name}; } return isset($this->options[$name]) ? $this->options[$name] : null; }