12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- <?php
- namespace Doctrine\DBAL\Event;
- use Doctrine\Common\EventArgs;
- use Doctrine\DBAL\Connection;
- use Doctrine\DBAL\Driver;
- use Doctrine\DBAL\Platforms\AbstractPlatform;
- use Doctrine\DBAL\Schema\AbstractSchemaManager;
- /**
- * 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;
- }
- /**
- * @return Connection
- */
- public function getConnection()
- {
- return $this->connection;
- }
- /**
- * @return Driver
- */
- public function getDriver()
- {
- return $this->connection->getDriver();
- }
- /**
- * @return AbstractPlatform
- */
- public function getDatabasePlatform()
- {
- return $this->connection->getDatabasePlatform();
- }
- /**
- * @return AbstractSchemaManager
- */
- public function getSchemaManager()
- {
- return $this->connection->getSchemaManager();
- }
- }
|