ModelsPruned.php 537 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. namespace Illuminate\Database\Events;
  3. class ModelsPruned
  4. {
  5. /**
  6. * The class name of the model that was pruned.
  7. *
  8. * @var string
  9. */
  10. public $model;
  11. /**
  12. * The number of pruned records.
  13. *
  14. * @var int
  15. */
  16. public $count;
  17. /**
  18. * Create a new event instance.
  19. *
  20. * @param string $model
  21. * @param int $count
  22. * @return void
  23. */
  24. public function __construct($model, $count)
  25. {
  26. $this->model = $model;
  27. $this->count = $count;
  28. }
  29. }