public function get(string $key) { if (!$this->has($key)) { throw new \InvalidArgumentException(sprintf('DataGrid option key "%s" was not found.', $key)); } return $this->options[$key]; }