We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
DatabaseBatchRepository
1 parent c5772dd commit 2a1a55cCopy full SHA for 2a1a55c
src/Illuminate/Bus/DatabaseBatchRepository.php
@@ -341,4 +341,25 @@ protected function toBatch($batch)
341
$batch->finished_at ? CarbonImmutable::createFromTimestamp($batch->finished_at) : $batch->finished_at
342
);
343
}
344
+
345
+ /**
346
+ * Get the underlying database connection.
347
+ *
348
+ * @return \Illuminate\Database\Connection
349
+ */
350
+ public function getConnection()
351
+ {
352
+ return $this->connection;
353
+ }
354
355
356
+ * Set the underlying database connection.
357
358
+ * @param \Illuminate\Database\Connection $connection
359
+ * @return void
360
361
+ public function setConnection(Connection $connection)
362
363
+ $this->connection = $connection;
364
365
0 commit comments