master

laravel/framework

Last updated at: 29/12/2023 09:22

ModelPruningFinished.php

TLDR

This file contains the definition of the ModelPruningFinished class, which represents an event that is fired when model pruning is finished.

Classes

ModelPruningFinished

This class represents an event that is fired when model pruning is finished. It has the following properties and methods:

  • Properties:

    • $models (array): The class names of the models that were pruned.
  • Methods:

    • __construct($models): Creates a new event instance. It takes an array of class names of the pruned models as a parameter.
<?php

namespace Illuminate\Database\Events;

class ModelPruningFinished
{
    /**
     * The class names of the models that were pruned.
     *
     * @var array<class-string>
     */
    public $models;

    /**
     * Create a new event instance.
     *
     * @param  array<class-string>  $models
     * @return void
     */
    public function __construct($models)
    {
        $this->models = $models;
    }
}