PingableConnection.php 371 B

1234567891011121314151617
  1. <?php
  2. namespace Doctrine\DBAL\Driver;
  3. /**
  4. * An interface for connections which support a "native" ping method.
  5. */
  6. interface PingableConnection
  7. {
  8. /**
  9. * Pings the database server to determine if the connection is still
  10. * available. Return true/false based on if that was successful or not.
  11. *
  12. * @return bool
  13. */
  14. public function ping();
  15. }