public function getValue(string $name) { if (!array_key_exists($name, $this->values)) { throw new Exception('Value is not present'); } return $this->values[$name]; }