ServerInfoAwareConnection.php 371 Bytes
Newer Older
1 2
<?php

Michael Moravec's avatar
Michael Moravec committed
3 4
declare(strict_types=1);

5 6 7 8 9
namespace Doctrine\DBAL\Driver;

/**
 * Contract for a connection that is able to provide information about the server it is connected to.
 */
10
interface ServerInfoAwareConnection extends Connection
11 12 13 14
{
    /**
     * Returns the version number of the database server connected to.
     */
15
    public function getServerVersion() : string;
16
}