Message::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 0

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 1
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 0
nc 1
nop 6
dl 0
loc 8
ccs 1
cts 1
cp 1
crap 1
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 11
    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 11
    }
27
28 1
    public function getFileName(): string
29
    {
30 1
        return $this->fileName;
31
    }
32
33 1
    public function getFilePath(): string
34
    {
35 1
        return $this->filePath;
36
    }
37
38 2
    public function getCurrentIteration(): int
39
    {
40 2
        return $this->currentIteration;
41
    }
42
43 3
    public function getTotalIteration(): int
44
    {
45 3
        return $this->totalIteration;
46
    }
47
48 3
    public function getData(): mixed
49
    {
50 3
        return $this->data;
51
    }
52
53
    public function getArchiveFilePath(): ?string
54
    {
55
        return $this->archiveFilePath;
56
    }
57
}
58