Passed
Push — master ( 16cc4b...9db413 )
by Viktor
01:52
created

MemorySpool   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 14
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A init() 0 9 1
1
<?php
2
3
namespace izumi\spoolmailer\spools;
4
5
/**
6
 * Stores Messages in memory.
7
 *
8
 * @author Viktor Khokhryakov <[email protected]>
9
 */
10
class MemorySpool extends BaseSpool
11
{
12
    /**
13
     * @inheritdoc
14
     */
15
    public function init()
16
    {
17
        parent::init();
18
        $this->setTransport([
19
            'class' => 'Swift_SpoolTransport',
20
            'constructArgs' => [
21
                [
22
                    'class' => 'Swift_MemorySpool',
23
                    'constructArgs' => [],
24
                ],
25
            ],
26
        ]);
27
    }
28
}
29