summaryrefslogtreecommitdiff
path: root/tests/Unit/Mail/Transport/Stub/TransportImplementation.php
blob: e3667c6edafaac2a1cf98a3375c62461b9602794 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?php

namespace Engelsystem\Test\Unit\Mail\Transport\Stub;

use Engelsystem\Mail\Transport\Transport;
use Swift_Mime_SimpleMessage as SimpleMessage;

class TransportImplementation extends Transport
{
    /**
     * {@inheritdoc}
     */
    public function send(SimpleMessage $message, &$failedRecipients = null)
    {
        return 0;
    }

    /**
     * @param SimpleMessage $message
     * @return array
     */
    public function getAllRecipients(SimpleMessage $message)
    {
        return $this->allRecipients($message);
    }

    /**
     * @param SimpleMessage $message
     * @return string
     */
    public function getGetTo(SimpleMessage $message)
    {
        return $this->getTo($message);
    }
}