| Total Complexity | 4 |
| Total Lines | 26 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | final class Category |
||
| 8 | { |
||
| 9 | private string $name; |
||
| 10 | private MessageReaderInterface $reader; |
||
| 11 | private MessageFormatterInterface $formatter; |
||
| 12 | |||
| 13 | 17 | public function __construct(string $name, MessageReaderInterface $reader, MessageFormatterInterface $formatter) |
|
| 18 | 17 | } |
|
| 19 | |||
| 20 | 17 | public function getName(): string |
|
| 23 | } |
||
| 24 | |||
| 25 | 16 | public function getMessage(string $id, string $locale, array $parameters = []): ?string |
|
| 26 | { |
||
| 27 | 16 | return $this->reader->getMessage($id, $locale, $parameters); |
|
| 28 | } |
||
| 29 | |||
| 30 | 16 | public function format(string $message, array $parameters, string $locale): string |
|
| 33 | } |
||
| 34 | } |
||
| 35 |