| Total Complexity | 5 |
| Total Lines | 35 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | class MessagesCatalog { |
||
| 17 | protected $messagesDomains; |
||
| 18 | /** |
||
| 19 | * |
||
| 20 | * @var LoaderInterface |
||
| 21 | */ |
||
| 22 | protected $loader; |
||
| 23 | protected $locale; |
||
| 24 | |||
| 25 | public function __construct($locale, LoaderInterface $loader) { |
||
| 26 | $this->locale = $locale; |
||
| 27 | $this->loader = $loader; |
||
| 28 | $this->messagesDomains = [ ]; |
||
| 29 | } |
||
| 30 | |||
| 31 | public function load() { |
||
| 32 | $this->messagesDomains = [ ]; |
||
| 33 | $domains = $this->getDomains (); |
||
| 34 | foreach ( $domains as $domain ) { |
||
| 35 | $do = new MessagesDomain ( $this->locale, $this->loader, $domain ); |
||
| 36 | $do->load (); |
||
| 37 | $this->messagesDomains [] = $do; |
||
| 38 | } |
||
| 39 | } |
||
| 40 | |||
| 41 | public function getDomains() { |
||
| 43 | } |
||
| 44 | |||
| 45 | /** |
||
| 46 | * |
||
| 47 | * @return MessagesDomain[] |
||
| 48 | */ |
||
| 49 | public function getMessagesDomains() { |
||
| 51 | } |
||
| 52 | } |
||
| 53 | |||
| 54 |