public function get($key) { if ($this->has($key)) { return $this->values[$key]; } throw new \InvalidArgumentException(sprintf('The value identified by "%s" does not exist.', $key)); }