| 1 |
<?php |
| 2 |
|
| 3 |
namespace FluentBoards\Framework\Database\Events; |
| 4 |
|
| 5 |
abstract class ConnectionEvent |
| 6 |
{ |
| 7 |
/** |
| 8 |
* The name of the connection. |
| 9 |
* |
| 10 |
* @var string |
| 11 |
*/ |
| 12 |
public $connectionName; |
| 13 |
|
| 14 |
/** |
| 15 |
* The database connection instance. |
| 16 |
* |
| 17 |
* @var \FluentBoards\Framework\Database\Query\WPDBConnection $connection |
| 18 |
*/ |
| 19 |
public $connection; |
| 20 |
|
| 21 |
/** |
| 22 |
* Create a new event instance. |
| 23 |
* |
| 24 |
* @var \FluentBoards\Framework\Database\Query\WPDBConnection $connection |
| 25 |
* @return void |
| 26 |
*/ |
| 27 |
public function __construct($connection) |
| 28 |
{ |
| 29 |
$this->connection = $connection; |
| 30 |
$this->connectionName = $connection->getName(); |
| 31 |
} |
| 32 |
} |
| 33 |
|