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

SesSdkTransportConfig::getCredentials()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 1
b 0
f 0
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