SchemaLoaded.php 765 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. namespace Illuminate\Database\Events;
  3. class SchemaLoaded
  4. {
  5. /**
  6. * The database connection instance.
  7. *
  8. * @var \Illuminate\Database\Connection
  9. */
  10. public $connection;
  11. /**
  12. * The database connection name.
  13. *
  14. * @var string
  15. */
  16. public $connectionName;
  17. /**
  18. * The path to the schema dump.
  19. *
  20. * @var string
  21. */
  22. public $path;
  23. /**
  24. * Create a new event instance.
  25. *
  26. * @param \Illuminate\Database\Connection $connection
  27. * @param string $path
  28. * @return void
  29. */
  30. public function __construct($connection, $path)
  31. {
  32. $this->connection = $connection;
  33. $this->connectionName = $connection->getName();
  34. $this->path = $path;
  35. }
  36. }