AbstractTransportFactory   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 20
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 20
ccs 3
cts 3
cp 1
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
1
<?php
2
3
namespace Da\Mailer\Transport;
4
5
use Da\Mailer\Transport\TransportInterface;
6
7
abstract class AbstractTransportFactory
8
{
9
    /**
10
     * @var array the options to configure the transport instance to create.
11
     */
12
    protected $options;
13
/**
14
     * AbstractTransportFactory constructor.
15
     *
16 5
     * @param array $options
17
     */
18 5
    protected function __construct(array $options)
19 5
    {
20
        $this->options = $options;
21
    }
22
23
    /**
24
     * @return TransportInterface
25
     */
26
    abstract public function create();
27
}
28