ConnectionInterface.php 536 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. namespace ModulesGarden\Servers\ZimbraEmail\App\Libs\Zimbra\Components\Api\Interfaces;
  3. /**
  4. *
  5. * Created by PhpStorm.
  6. * User: Tomasz Bielecki ( tomasz.bi@modulesgarden.com )
  7. * Date: 03.10.19
  8. * Time: 12:12
  9. * Class ConnectionInterface
  10. */
  11. interface ConnectionInterface
  12. {
  13. /**
  14. * check if connection has been established
  15. *
  16. * @return bool
  17. */
  18. public function isConnected();
  19. /**
  20. * return connection error message
  21. *
  22. * @return mixed
  23. */
  24. public function getConnectionError();
  25. }