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

3 4
namespace Doctrine\DBAL\Driver;

till's avatar
till committed
5 6 7
/**
 * An interface for connections which support a "native" ping method.
 */
8 9
interface PingableConnection
{
till's avatar
till committed
10 11 12 13 14 15
    /**
     * 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
     */
16
    public function ping();
Steve Müller's avatar
Steve Müller committed
17
}