master

laravel/framework

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

ArtisanStarting.php

TLDR

The provided file ArtisanStarting.php is a class definition for the ArtisanStarting event in the Illuminate\Console\Events namespace. It contains a constructor that initializes the ArtisanStarting event with an instance of the Illuminate\Console\Application class.

Classes

Class: ArtisanStarting

This class represents the ArtisanStarting event. It contains a single property:

  • public $artisan: An instance of the Illuminate\Console\Application class.

The ArtisanStarting class has a constructor that takes an Illuminate\Console\Application instance as a parameter and assigns it to the $artisan property.

<?php

namespace Illuminate\Console\Events;

class ArtisanStarting
{
    /**
     * The Artisan application instance.
     *
     * @var \Illuminate\Console\Application
     */
    public $artisan;

    /**
     * Create a new event instance.
     *
     * @param  \Illuminate\Console\Application  $artisan
     * @return void
     */
    public function __construct($artisan)
    {
        $this->artisan = $artisan;
    }
}