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