public function getOptionValue($option) { if (!isset($this->options[$option])) { throw new InvalidOptionException('Invalid Option'); } return $this->options[$option]->getValue(); }