| Total Complexity | 4 |
| Total Lines | 35 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | class MessageJsBuilder |
||
| 11 | { |
||
| 12 | /** @var MessageStorage */ |
||
| 13 | private $storage; |
||
| 14 | |||
| 15 | 2 | public function __construct(MessageStorage $storage) |
|
| 16 | { |
||
| 17 | 2 | $this->storage = $storage; |
|
| 18 | 2 | } |
|
| 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 | 2 | public function exportJsonp(string $locale, array $domains, string $jsonpCallback) |
|
| 45 | } |
||
| 46 | } |