| Total Complexity | 3 |
| Total Lines | 31 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | class MessageJsBuilder |
||
| 11 | { |
||
| 12 | /** @var MessageStorage */ |
||
| 13 | private $storage; |
||
| 14 | |||
| 15 | 1 | public function __construct(MessageStorage $storage) |
|
| 16 | { |
||
| 17 | 1 | $this->storage = $storage; |
|
| 18 | 1 | } |
|
| 19 | |||
| 20 | /** |
||
| 21 | * Export one or multiple domains in a single JS file with JSONP callback that will load JED format translations |
||
| 22 | * |
||
| 23 | * @param string $locale |
||
| 24 | * @param string[] $domains |
||
| 25 | * @param string $jsonpCallback Function name, that will be called with domain translations |
||
| 26 | * @return string |
||
| 27 | */ |
||
| 28 | 1 | public function exportJsonp(string $locale, array $domains, string $jsonpCallback) |
|
| 41 | } |
||
| 42 | } |