v.0.1
This commit is contained in:
32
vendor/illuminate/database/Events/ConnectionEvent.php
vendored
Normal file
32
vendor/illuminate/database/Events/ConnectionEvent.php
vendored
Normal file
@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
namespace Illuminate\Database\Events;
|
||||
|
||||
abstract class ConnectionEvent
|
||||
{
|
||||
/**
|
||||
* The name of the connection.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public $connectionName;
|
||||
|
||||
/**
|
||||
* The database connection instance.
|
||||
*
|
||||
* @var \Illuminate\Database\Connection
|
||||
*/
|
||||
public $connection;
|
||||
|
||||
/**
|
||||
* Create a new event instance.
|
||||
*
|
||||
* @param \Illuminate\Database\Connection $connection
|
||||
* @return void
|
||||
*/
|
||||
public function __construct($connection)
|
||||
{
|
||||
$this->connection = $connection;
|
||||
$this->connectionName = $connection->getName();
|
||||
}
|
||||
}
|
8
vendor/illuminate/database/Events/MigrationEnded.php
vendored
Normal file
8
vendor/illuminate/database/Events/MigrationEnded.php
vendored
Normal file
@ -0,0 +1,8 @@
|
||||
<?php
|
||||
|
||||
namespace Illuminate\Database\Events;
|
||||
|
||||
class MigrationEnded extends MigrationEvent
|
||||
{
|
||||
//
|
||||
}
|
36
vendor/illuminate/database/Events/MigrationEvent.php
vendored
Normal file
36
vendor/illuminate/database/Events/MigrationEvent.php
vendored
Normal file
@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
namespace Illuminate\Database\Events;
|
||||
|
||||
use Illuminate\Contracts\Database\Events\MigrationEvent as MigrationEventContract;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
abstract class MigrationEvent implements MigrationEventContract
|
||||
{
|
||||
/**
|
||||
* An migration instance.
|
||||
*
|
||||
* @var \Illuminate\Database\Migrations\Migration
|
||||
*/
|
||||
public $migration;
|
||||
|
||||
/**
|
||||
* The migration method that was called.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public $method;
|
||||
|
||||
/**
|
||||
* Create a new event instance.
|
||||
*
|
||||
* @param \Illuminate\Database\Migrations\Migration $migration
|
||||
* @param string $method
|
||||
* @return void
|
||||
*/
|
||||
public function __construct(Migration $migration, $method)
|
||||
{
|
||||
$this->method = $method;
|
||||
$this->migration = $migration;
|
||||
}
|
||||
}
|
8
vendor/illuminate/database/Events/MigrationStarted.php
vendored
Normal file
8
vendor/illuminate/database/Events/MigrationStarted.php
vendored
Normal file
@ -0,0 +1,8 @@
|
||||
<?php
|
||||
|
||||
namespace Illuminate\Database\Events;
|
||||
|
||||
class MigrationStarted extends MigrationEvent
|
||||
{
|
||||
//
|
||||
}
|
10
vendor/illuminate/database/Events/MigrationsEnded.php
vendored
Normal file
10
vendor/illuminate/database/Events/MigrationsEnded.php
vendored
Normal file
@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
namespace Illuminate\Database\Events;
|
||||
|
||||
use Illuminate\Contracts\Database\Events\MigrationEvent as MigrationEventContract;
|
||||
|
||||
class MigrationsEnded implements MigrationEventContract
|
||||
{
|
||||
//
|
||||
}
|
10
vendor/illuminate/database/Events/MigrationsStarted.php
vendored
Normal file
10
vendor/illuminate/database/Events/MigrationsStarted.php
vendored
Normal file
@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
namespace Illuminate\Database\Events;
|
||||
|
||||
use Illuminate\Contracts\Database\Events\MigrationEvent as MigrationEventContract;
|
||||
|
||||
class MigrationsStarted implements MigrationEventContract
|
||||
{
|
||||
//
|
||||
}
|
24
vendor/illuminate/database/Events/NoPendingMigrations.php
vendored
Normal file
24
vendor/illuminate/database/Events/NoPendingMigrations.php
vendored
Normal file
@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
namespace Illuminate\Database\Events;
|
||||
|
||||
class NoPendingMigrations
|
||||
{
|
||||
/**
|
||||
* The migration method that was called.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public $method;
|
||||
|
||||
/**
|
||||
* Create a new event instance.
|
||||
*
|
||||
* @param string $method
|
||||
* @return void
|
||||
*/
|
||||
public function __construct($method)
|
||||
{
|
||||
$this->method = $method;
|
||||
}
|
||||
}
|
59
vendor/illuminate/database/Events/QueryExecuted.php
vendored
Normal file
59
vendor/illuminate/database/Events/QueryExecuted.php
vendored
Normal file
@ -0,0 +1,59 @@
|
||||
<?php
|
||||
|
||||
namespace Illuminate\Database\Events;
|
||||
|
||||
class QueryExecuted
|
||||
{
|
||||
/**
|
||||
* The SQL query that was executed.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public $sql;
|
||||
|
||||
/**
|
||||
* The array of query bindings.
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
public $bindings;
|
||||
|
||||
/**
|
||||
* The number of milliseconds it took to execute the query.
|
||||
*
|
||||
* @var float
|
||||
*/
|
||||
public $time;
|
||||
|
||||
/**
|
||||
* The database connection instance.
|
||||
*
|
||||
* @var \Illuminate\Database\Connection
|
||||
*/
|
||||
public $connection;
|
||||
|
||||
/**
|
||||
* The database connection name.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public $connectionName;
|
||||
|
||||
/**
|
||||
* Create a new event instance.
|
||||
*
|
||||
* @param string $sql
|
||||
* @param array $bindings
|
||||
* @param float|null $time
|
||||
* @param \Illuminate\Database\Connection $connection
|
||||
* @return void
|
||||
*/
|
||||
public function __construct($sql, $bindings, $time, $connection)
|
||||
{
|
||||
$this->sql = $sql;
|
||||
$this->time = $time;
|
||||
$this->bindings = $bindings;
|
||||
$this->connection = $connection;
|
||||
$this->connectionName = $connection->getName();
|
||||
}
|
||||
}
|
33
vendor/illuminate/database/Events/StatementPrepared.php
vendored
Normal file
33
vendor/illuminate/database/Events/StatementPrepared.php
vendored
Normal file
@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
namespace Illuminate\Database\Events;
|
||||
|
||||
class StatementPrepared
|
||||
{
|
||||
/**
|
||||
* The database connection instance.
|
||||
*
|
||||
* @var \Illuminate\Database\Connection
|
||||
*/
|
||||
public $connection;
|
||||
|
||||
/**
|
||||
* The PDO statement.
|
||||
*
|
||||
* @var \PDOStatement
|
||||
*/
|
||||
public $statement;
|
||||
|
||||
/**
|
||||
* Create a new event instance.
|
||||
*
|
||||
* @param \Illuminate\Database\Connection $connection
|
||||
* @param \PDOStatement $statement
|
||||
* @return void
|
||||
*/
|
||||
public function __construct($connection, $statement)
|
||||
{
|
||||
$this->statement = $statement;
|
||||
$this->connection = $connection;
|
||||
}
|
||||
}
|
8
vendor/illuminate/database/Events/TransactionBeginning.php
vendored
Normal file
8
vendor/illuminate/database/Events/TransactionBeginning.php
vendored
Normal file
@ -0,0 +1,8 @@
|
||||
<?php
|
||||
|
||||
namespace Illuminate\Database\Events;
|
||||
|
||||
class TransactionBeginning extends ConnectionEvent
|
||||
{
|
||||
//
|
||||
}
|
8
vendor/illuminate/database/Events/TransactionCommitted.php
vendored
Normal file
8
vendor/illuminate/database/Events/TransactionCommitted.php
vendored
Normal file
@ -0,0 +1,8 @@
|
||||
<?php
|
||||
|
||||
namespace Illuminate\Database\Events;
|
||||
|
||||
class TransactionCommitted extends ConnectionEvent
|
||||
{
|
||||
//
|
||||
}
|
8
vendor/illuminate/database/Events/TransactionRolledBack.php
vendored
Normal file
8
vendor/illuminate/database/Events/TransactionRolledBack.php
vendored
Normal file
@ -0,0 +1,8 @@
|
||||
<?php
|
||||
|
||||
namespace Illuminate\Database\Events;
|
||||
|
||||
class TransactionRolledBack extends ConnectionEvent
|
||||
{
|
||||
//
|
||||
}
|
Reference in New Issue
Block a user