Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
CRAP
100.00% covered (success)
100.00%
1 / 1
Message
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
1 / 1
 __construct
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
1<?php
2
3declare(strict_types=1);
4
5namespace Celema\Verba\Tool;
6
7/**
8 * A translatable message found in source: its id, optional plural source,
9 * optional context, target domain, and locations.
10 *
11 * @api
12 */
13final 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        public readonly ?string $context = null,
24    ) {}
25}