Deprecated: Constant E_STRICT is deprecated in /home/pastorz/old-espace-client/vendor/symfony/error-handler/ErrorHandler.php on line 58

Deprecated: Constant E_STRICT is deprecated in /home/pastorz/old-espace-client/vendor/symfony/error-handler/ErrorHandler.php on line 76
Symfony Profiler

vendor/symfony/mailer/Transport/TransportInterface.php line 32

Open in your IDE?
  1. <?php
  2. /*
  3.  * This file is part of the Symfony package.
  4.  *
  5.  * (c) Fabien Potencier <fabien@symfony.com>
  6.  *
  7.  * For the full copyright and license information, please view the LICENSE
  8.  * file that was distributed with this source code.
  9.  */
  10. namespace Symfony\Component\Mailer\Transport;
  11. use Symfony\Component\Mailer\Envelope;
  12. use Symfony\Component\Mailer\Exception\TransportExceptionInterface;
  13. use Symfony\Component\Mailer\SentMessage;
  14. use Symfony\Component\Mime\RawMessage;
  15. /**
  16.  * Interface for all mailer transports.
  17.  *
  18.  * When sending emails, you should prefer MailerInterface implementations
  19.  * as they allow asynchronous sending.
  20.  *
  21.  * @author Fabien Potencier <fabien@symfony.com>
  22.  */
  23. interface TransportInterface
  24. {
  25.     /**
  26.      * @throws TransportExceptionInterface
  27.      */
  28.     public function send(RawMessage $messageEnvelope $envelope null): ?SentMessage;
  29.     public function __toString(): string;
  30. }