MigrationEvent.php 809 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. namespace Illuminate\Database\Events;
  3. use Illuminate\Database\Migrations\Migration;
  4. use Illuminate\Contracts\Database\Events\MigrationEvent as MigrationEventContract;
  5. abstract class MigrationEvent implements MigrationEventContract
  6. {
  7. /**
  8. * An migration instance.
  9. *
  10. * @var \Illuminate\Database\Migrations\Migration
  11. */
  12. public $migration;
  13. /**
  14. * The migration method that was called.
  15. *
  16. * @var string
  17. */
  18. public $method;
  19. /**
  20. * Create a new event instance.
  21. *
  22. * @param \Illuminate\Database\Migrations\Migration $migration
  23. * @param string $method
  24. * @return void
  25. */
  26. public function __construct(Migration $migration, $method)
  27. {
  28. $this->method = $method;
  29. $this->migration = $migration;
  30. }
  31. }