File "Connection.php"

Full Path: /home/pulsehostuk9/public_html/invoicer.pulsehost.co.uk/vendor/doctrine/dbal/src/Driver/PDO/SQLSrv/Connection.php
File size: 674 bytes
MIME-type: text/x-php
Charset: utf-8

<?php

declare(strict_types=1);

namespace Doctrine\DBAL\Driver\PDO\SQLSrv;

use Doctrine\DBAL\Driver\Middleware\AbstractConnectionMiddleware;
use Doctrine\DBAL\Driver\PDO\Connection as PDOConnection;
use PDO;

final class Connection extends AbstractConnectionMiddleware
{
    public function __construct(private readonly PDOConnection $connection)
    {
        parent::__construct($connection);
    }

    public function prepare(string $sql): Statement
    {
        return new Statement(
            $this->connection->prepare($sql),
        );
    }

    public function getNativeConnection(): PDO
    {
        return $this->connection->getNativeConnection();
    }
}