PTION_ID, $data);
}
/**
* Returns the current simulation data.
*
* @return array
* @throws UnexpectedValueException If failed to load.
*/
private function load(): array
{
$data = get_option(self::OPTION_ID);
if (!$data) {
throw new UnexpectedValueException('Webhook simulation data not found.');
}
return $data;
}
}