Completed
Push — master ( db331b...68a7db )
by Marcel
01:54 queued 11s
created

MailboxManager::createPostmarkDriver()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace BeyondCode\Mailbox;
4
5
use Illuminate\Support\Manager;
6
use BeyondCode\Mailbox\Drivers\Log;
7
use BeyondCode\Mailbox\Drivers\Mailgun;
8
use BeyondCode\Mailbox\Drivers\MailCare;
9
use BeyondCode\Mailbox\Drivers\Postmark;
10
use BeyondCode\Mailbox\Drivers\SendGrid;
11
12
class MailboxManager extends Manager
13
{
14
    public function mailbox($name = null)
15
    {
16
        return $this->driver($name);
17
    }
18
19
    public function createLogDriver()
20
    {
21
        return new Log;
22
    }
23
24
    public function createMailgunDriver()
25
    {
26
        return new Mailgun;
27
    }
28
29
    public function createSendGridDriver()
30
    {
31
        return new SendGrid;
32
    }
33
34
    public function createMailCareDriver()
35
    {
36
        return new MailCare;
37
    }
38
39
    public function createPostmarkDriver()
40
    {
41
        return new Postmark;
42
    }
43
44
    public function getDefaultDriver()
45
    {
46
        return $this->app['config']['mailbox.driver'];
47
    }
48
}
49