ServerInterface.php 383 B

123456789101112131415161718192021
  1. <?php
  2. declare(strict_types=1);
  3. namespace Ddeboer\Imap;
  4. /**
  5. * An IMAP server.
  6. */
  7. interface ServerInterface
  8. {
  9. /**
  10. * Authenticate connection.
  11. *
  12. * @param string $username Username
  13. * @param string $password Password
  14. *
  15. * @return ConnectionInterface
  16. */
  17. public function authenticate(string $username, string $password): ConnectionInterface;
  18. }