public function getData(string $key)
    {
        if (!$this->hasData($key)) {
            throw new \InvalidArgumentException($key . ' not found in submitted form data.');
        }

        return $this->dataCollection[$key];
    }