MigrationsEvent.php
TLDR
This file contains the MigrationsEvent
class, which is an abstract class that implements the MigrationEvent
contract. It has a property $method
that represents the migration method that was invoked, and a constructor to set this property.
MigrationsEvent
class
The MigrationsEvent
class is an abstract class that implements the MigrationEvent
contract. It has the following properties and methods:
Properties
-
$method
: Represents the migration method that was invoked.
Methods
-
__construct($method)
: A constructor that accepts a$method
parameter and sets the$method
property with its value.
<?php
namespace Illuminate\Database\Events;
use Illuminate\Contracts\Database\Events\MigrationEvent as MigrationEventContract;
abstract class MigrationsEvent implements MigrationEventContract
{
/**
* The migration method that was invoked.
*
* @var string
*/
public $method;
/**
* Create a new event instance.
*
* @param string $method
* @return void
*/
public function __construct($method)
{
$this->method = $method;
}
}