*/ public array $setCalls = []; public function __construct() {} public function set(string $connection, DatabaseHost|int $host, string $database = 'mysql'): void { $this->setCalls[] = [ 'connection' => $connection, 'host' => $host, 'database' => $database, ]; if ($this->throwOnSet !== null) { throw $this->throwOnSet; } } }