| 1 | <?php |
||
| 5 | trait ConfigAwareTrait |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * Holds Config Array |
||
| 9 | * |
||
| 10 | * @var array |
||
| 11 | */ |
||
| 12 | protected $config; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * Sets the Config |
||
| 16 | * |
||
| 17 | * @param array $config |
||
| 18 | */ |
||
| 19 | public function setConfig(array $config) |
||
| 23 | |||
| 24 | /** |
||
| 25 | * Gets the config |
||
| 26 | * |
||
| 27 | * @return array |
||
| 28 | */ |
||
| 29 | public function getConfig() |
||
| 33 | |||
| 34 | /** |
||
| 35 | * Gets the config item from the config array |
||
| 36 | * |
||
| 37 | * @param string $key |
||
| 38 | * @return string |
||
| 39 | */ |
||
| 40 | public function getConfigItem($key) |
||
| 46 | } |
||
| 47 |