AnyLanguage.php 274 B

1234567891011121314151617181920
  1. <?php
  2. namespace Core\Language;
  3. class AnyLanguage
  4. {
  5. public $data;
  6. public function get($key)
  7. {
  8. if(isset($this->data[$key]))
  9. {
  10. return $this->data[$key];
  11. }
  12. else
  13. {
  14. return $key;
  15. }
  16. }
  17. }