| Total Complexity | 4 |
| Total Lines | 52 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 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 |
||
| 49 | } |
||
| 50 | |||
| 51 | /** |
||
| 52 | * Get the amount. |
||
| 53 | * |
||
| 54 | * @return int |
||
| 55 | */ |
||
| 56 | public function getAmount(): int |
||
| 61 |