Passed
Push — master ( e0b9fb...8b102c )
by Pieter
03:24
created

LocalizationInfo::getMessageString()   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
namespace W2w\Lib\ApieObjectAccessNormalizer\Exceptions;
5
6
7
final class LocalizationInfo
8
{
9
    /**
10
     * @var string
11
     */
12
    private $messageString;
13
14
    /**
15
     * @var array
16
     */
17
    private $replacements;
18
19
    /**
20
     * @var int
21
     */
22
    private $amount;
23
24
    public function __construct(string $messageString, array $replacements = [], int $amount = 1)
25
    {
26
        $this->messageString = $messageString;
27
        $this->replacements = $replacements;
28
        $this->amount = $amount;
29
    }
30
31
    /**
32
     * Get the message string.
33
     *
34
     * @return string
35
     */
36
    public function getMessageString(): string
37
    {
38
        return $this->messageString;
39
    }
40
41
    /**
42
     * Get the replacements.
43
     *
44
     * @return array
45
     */
46
    public function getReplacements(): array
47
    {
48
        return $this->replacements;
49
    }
50
51
    /**
52
     * Get the amount.
53
     *
54
     * @return int
55
     */
56
    public function getAmount(): int
57
    {
58
        return $this->amount;
59
    }
60
}
61