Passed
Push — master ( 79a1fd...4ea9c2 )
by Byron
02:51
created

SesSdkTransportConfig   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 37
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 10
dl 0
loc 37
rs 10
c 1
b 0
f 0
wmc 4

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getRegion() 0 3 1
A getOptions() 0 3 1
A getCredentials() 0 3 1
1
<?php
2
3
/*
4
 * This file is part of the badams/symfony-amazon-sdk-mailer package.
5
 *
6
 * (c) Byron Adams <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Badams\AmazonMailerSdk;
13
14
class SesSdkTransportConfig
15
{
16
    /**
17
     * @var callable
18
     */
19
    private $credentials;
20
21
    /**
22
     * @var string
23
     */
24
    private $region;
25
26
    /**
27
     * @var array
28
     */
29
    private $options = [];
30
31
    public function __construct(callable $credentials, string $region, array $options = [])
32
    {
33
        $this->credentials = $credentials;
34
        $this->region = $region;
35
        $this->options = array_filter($options);
36
    }
37
38
    public function getCredentials(): callable
39
    {
40
        return $this->credentials;
41
    }
42
43
    public function getRegion(): string
44
    {
45
        return $this->region;
46
    }
47
48
    public function getOptions(): array
49
    {
50
        return $this->options;
51
    }
52
}
53