public function validate() { if (!is_int($this->value)) { throw new ConfigurationException("Option {$this->key} must be an integer."); } return true; }