debugDataHolder = $debugDataHolder; $this->stopwatch = $stopwatch; } public function setConnectionName(string $name): void { $this->connectionName = $name; } public function wrap(DriverInterface $driver): DriverInterface { return new Driver($driver, $this->debugDataHolder, $this->stopwatch, $this->connectionName); } }