ScheduledTaskStarting.php
TLDR
The file ScheduledTaskStarting.php
is a part of the Illuminate\Console\Events
namespace in the Demo Projects
project. It defines a class ScheduledTaskStarting
which represents an event that is triggered when a scheduled task starts.
Classes
ScheduledTaskStarting
The ScheduledTaskStarting
class represents an event that is triggered when a scheduled task starts. It contains a public property $task
which holds the scheduled event being run.
<?php
namespace Illuminate\Console\Events;
use Illuminate\Console\Scheduling\Event;
class ScheduledTaskStarting
{
/**
* The scheduled event being run.
*
* @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;
}
}