master

laravel/framework

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

ModelPruningStarting.php

TLDR

This file contains the ModelPruningStarting class, which is an event class used in the Illuminate Database package.

Classes

ModelPruningStarting

The ModelPruningStarting class represents an event that is fired when the model pruning process is starting. It contains a public property $models that holds an array of class names of the models that will be pruned. The property is annotated with the type array<class-string>. The class has a constructor that accepts an array of model class names and assigns it to the $models property.

<?php

namespace Illuminate\Database\Events;

class ModelPruningStarting
{
    /**
     * The class names of the models that will be 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;
    }
}