FileTransportOptions::getDirectory()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 1
1
<?php
2
declare(strict_types=1);
3
4
namespace Genkgo\Mail\Transport;
5
6
final class FileTransportOptions
7
{
8
    /**
9
     * @var string
10
     */
11
    private $directory;
12
13
    /**
14
     * @var \Closure
15
     */
16
    private $fileNameGenerator;
17
18
    /**
19
     * @param string $directory
20
     * @param \Closure $fileNameGenerator
21
     */
22 1
    public function __construct(string $directory, \Closure $fileNameGenerator)
23
    {
24 1
        $this->directory = $directory;
25 1
        $this->fileNameGenerator = $fileNameGenerator;
26 1
    }
27
28
    /**
29
     * @return string
30
     */
31 1
    public function getDirectory(): string
32
    {
33 1
        return $this->directory;
34
    }
35
36
    /**
37
     * @return \Closure
38
     */
39 1
    public function getFileNameGenerator(): \Closure
40
    {
41 1
        return $this->fileNameGenerator;
42
    }
43
}
44