PingableConnection.php 389 Bytes
Newer Older
1
<?php
till's avatar
till committed
2

3 4
namespace Doctrine\DBAL\Driver;

till's avatar
till committed
5 6
/**
 * An interface for connections which support a "native" ping method.
7 8
 *
 * @deprecated
till's avatar
till committed
9
 */
10 11
interface PingableConnection
{
till's avatar
till committed
12 13 14 15 16 17
    /**
     * Pings the database server to determine if the connection is still
     * available. Return true/false based on if that was successful or not.
     *
     * @return bool
     */
18
    public function ping();
Steve Müller's avatar
Steve Müller committed
19
}