SendMailTransportFactory   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
c 1
b 0
f 0
dl 0
loc 18
ccs 8
cts 8
cp 1
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A create() 0 3 1
A __construct() 0 3 1
1
<?php
2
3
namespace Da\Mailer\Transport;
4
5
use Symfony\Component\Mailer\Transport\Dsn;
6
7
class SendMailTransportFactory extends AbstractTransportFactory
8
{
9 3
    /**
10
     * {@inheritdoc}
11 3
     */
12 3
    public function __construct(array $options)
13
    {
14
        parent::__construct($options);
15
    }
16
17
    /**
18
     * Returns a SendMailTransport.
19 3
     *
20
     * @return SendMailTransport
21 3
     */
22 3
    public function create()
23 2
    {
24 2
        return new SendMailTransport($this->options['dsn']);
25
    }
26
}
27