Completed
Push — master ( 65c137...0fb797 )
by Marcel
12s
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\Postmark;
9
use BeyondCode\Mailbox\Drivers\SendGrid;
10
11
class MailboxManager extends Manager
12
{
13
    public function mailbox($name = null)
14
    {
15
        return $this->driver($name);
16
    }
17
18
    public function createLogDriver()
19
    {
20
        return new Log;
21
    }
22
23
    public function createMailgunDriver()
24
    {
25
        return new Mailgun;
26
    }
27
28
    public function createSendGridDriver()
29
    {
30
        return new SendGrid;
31
    }
32
33
    public function createPostmarkDriver()
34
    {
35
        return new Postmark;
36
    }
37
38
    public function getDefaultDriver()
39
    {
40
        return $this->app['config']['mailbox.driver'];
41
    }
42
}
43