Test Failed
Branch 4.x (8bbc02)
by Loïc
02:21
created

Message::getArchiveFilePath()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
/*
6
 * This file is part of the DataImporter package.
7
 *
8
 * (c) Loïc Sapone <[email protected]>
9
 *
10
 * For the full copyright and license information, please view the LICENSE
11
 * file that was distributed with this source code.
12
 */
13
14
namespace IQ2i\DataImporter\Exchange;
15
16
final class Message
17
{
18
    public function __construct(
19
        private readonly string $fileName,
20
        private readonly string $filePath,
21
        private readonly int $currentIteration,
22
        private readonly int $totalIteration,
23
        private readonly mixed $data = null,
24
        private readonly ?string $archiveFilePath = null,
25
    ) {
26
    }
27
28
    public function getFileName(): string
29
    {
30
        return $this->fileName;
31
    }
32
33
    public function getFilePath(): string
34
    {
35
        return $this->filePath;
36
    }
37
38
    public function getCurrentIteration(): int
39
    {
40
        return $this->currentIteration;
41
    }
42
43
    public function getTotalIteration(): int
44
    {
45
        return $this->totalIteration;
46
    }
47
48
    public function getData(): mixed
49
    {
50
        return $this->data;
51
    }
52
53
    public function getArchiveFilePath(): ?string
54
    {
55
        return $this->archiveFilePath;
56
    }
57
}
58