Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
1 / 1 |
| Message | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
| __construct | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | namespace Celemas\Verba\Tool; |
| 6 | |
| 7 | /** |
| 8 | * A translatable message found in source: its id, optional plural source, the |
| 9 | * domain it targets (null for a bare `__`/`__n` call), and where it occurs. |
| 10 | * |
| 11 | * @api |
| 12 | */ |
| 13 | final class Message |
| 14 | { |
| 15 | /** |
| 16 | * @param list<string> $locations |
| 17 | */ |
| 18 | public function __construct( |
| 19 | public readonly ?string $domain, |
| 20 | public readonly string $id, |
| 21 | public readonly ?string $plural, |
| 22 | public readonly array $locations, |
| 23 | ) {} |
| 24 | } |