/** * Create a new instance. * * @param TimeDataCollector $timeCollector The optional time collector. */ public function __construct(TimeDataCollector $timeCollector = null) { $this->timeCollector = $timeCollector; DatabaseDebugger::attach($this); }
/** * Add statement to the debugger. * * @param array $info The debug information. * * @return void */ public function addStatement($info) { $this->debugger->addStatement($info); }