DatabaseBusy.php 579 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. namespace Illuminate\Database\Events;
  3. class DatabaseBusy
  4. {
  5. /**
  6. * The database connection name.
  7. *
  8. * @var string
  9. */
  10. public $connectionName;
  11. /**
  12. * The number of open connections.
  13. *
  14. * @var int
  15. */
  16. public $connections;
  17. /**
  18. * Create a new event instance.
  19. *
  20. * @param string $connectionName
  21. * @param int $connections
  22. */
  23. public function __construct($connectionName, $connections)
  24. {
  25. $this->connectionName = $connectionName;
  26. $this->connections = $connections;
  27. }
  28. }