master

laravel/framework

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

ScheduledBackgroundTaskFinished.php

TLDR

The file ScheduledBackgroundTaskFinished.php contains a class ScheduledBackgroundTaskFinished in the namespace Illuminate\Console\Events. This class represents an event for a scheduled background task finishing.

Classes

ScheduledBackgroundTaskFinished

This class represents an event for a scheduled background task finishing. It has a public property $task which holds the scheduled event that ran. The class has a constructor that takes an instance of \Illuminate\Console\Scheduling\Event as a parameter and assigns it to the $task property.

<?php

namespace Illuminate\Console\Events;

use Illuminate\Console\Scheduling\Event;

class ScheduledBackgroundTaskFinished
{
    /**
     * The scheduled event that ran.
     *
     * @var \Illuminate\Console\Scheduling\Event
     */
    public $task;

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