public function getOption($name) { if ($name !== self::OPTION_VERSION && $name !== self::OPTION_FORCE_COOKIE) { throw new Exception\AppException('Invalid option.'); } return array_key_exists($name, $this->options) ? $this->options[$name] : null; }