ConnectionEstablished.php
2 weeks ago
ConnectionEvent.php
2 years ago
DatabaseBusy.php
2 weeks ago
DatabaseRefreshed.php
2 years ago
MigrationEnded.php
2 years ago
MigrationEvent.php
2 years ago
MigrationStarted.php
2 years ago
MigrationsEnded.php
2 years ago
MigrationsEvent.php
2 years ago
MigrationsStarted.php
2 years ago
ModelsPruned.php
2 years ago
NoPendingMigrations.php
2 years ago
QueryExecuted.php
2 years ago
SchemaDumped.php
2 years ago
SchemaLoaded.php
2 years ago
StatementPrepared.php
2 years ago
TransactionBeginning.php
2 years ago
TransactionCommitted.php
2 years ago
TransactionCommitting.php
2 weeks ago
TransactionRolledBack.php
2 years ago
MigrationEvent.php
35 lines
| 1 | <?php |
| 2 | |
| 3 | namespace IAWPSCOPED\Illuminate\Database\Events; |
| 4 | |
| 5 | use IAWPSCOPED\Illuminate\Contracts\Database\Events\MigrationEvent as MigrationEventContract; |
| 6 | use IAWPSCOPED\Illuminate\Database\Migrations\Migration; |
| 7 | /** @internal */ |
| 8 | abstract class MigrationEvent implements MigrationEventContract |
| 9 | { |
| 10 | /** |
| 11 | * A migration instance. |
| 12 | * |
| 13 | * @var \Illuminate\Database\Migrations\Migration |
| 14 | */ |
| 15 | public $migration; |
| 16 | /** |
| 17 | * The migration method that was called. |
| 18 | * |
| 19 | * @var string |
| 20 | */ |
| 21 | public $method; |
| 22 | /** |
| 23 | * Create a new event instance. |
| 24 | * |
| 25 | * @param \Illuminate\Database\Migrations\Migration $migration |
| 26 | * @param string $method |
| 27 | * @return void |
| 28 | */ |
| 29 | public function __construct(Migration $migration, $method) |
| 30 | { |
| 31 | $this->method = $method; |
| 32 | $this->migration = $migration; |
| 33 | } |
| 34 | } |
| 35 |