| 1 | <?php |
||
| 13 | class Config |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * Config data. |
||
| 17 | * |
||
| 18 | * @var array |
||
| 19 | */ |
||
| 20 | protected $data; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * Create a new MultiLang config instance. |
||
| 24 | * |
||
| 25 | * @param array $data |
||
| 26 | */ |
||
| 27 | 27 | public function __construct(array $data) |
|
| 31 | |||
| 32 | /** |
||
| 33 | * Get config parameter |
||
| 34 | * |
||
| 35 | * @param string $key |
||
| 36 | * @param mixed $default |
||
| 37 | * @return array|mixed|null |
||
| 38 | */ |
||
| 39 | 21 | public function get($key = null, $default = null) |
|
| 61 | |||
| 62 | } |
||
| 63 |