<?php
declare(strict_types=1);
namespace Doctrine\DBAL\Event;
use Doctrine\Common\EventArgs;
use Doctrine\DBAL\Connection;
/**
* Event Arguments used when a Driver connection is established inside Doctrine\DBAL\Connection.
*/
class ConnectionEventArgs extends EventArgs
{
/** @var Connection */
private $connection;
public function __construct(Connection $connection)
{
$this->connection = $connection;
}
public function getConnection() : Connection
{
return $this->connection;
}
}
-
Sergei Morozov authored