| Total Complexity | 3 |
| Total Lines | 44 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 5 | class DataBagContext |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * @var DataBag |
||
| 9 | */ |
||
| 10 | protected $xDataBag; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * @var string |
||
| 14 | */ |
||
| 15 | protected $sName; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * The constructor |
||
| 19 | * |
||
| 20 | * @param DataBag $xDataBag |
||
| 21 | * @param string $sName |
||
| 22 | */ |
||
| 23 | public function __construct(DataBag $xDataBag, string $sName) |
||
| 24 | { |
||
| 25 | $this->xDataBag = $xDataBag; |
||
| 26 | $this->sName = $sName; |
||
| 27 | } |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @param string $sKey |
||
| 31 | * @param mixed $xValue |
||
| 32 | * |
||
| 33 | * @return void |
||
| 34 | */ |
||
| 35 | public function set(string $sKey, $xValue) |
||
| 38 | } |
||
| 39 | |||
| 40 | /** |
||
| 41 | * @param string $sKey |
||
| 42 | * @param mixed $xValue |
||
| 43 | * |
||
| 44 | * @return mixed |
||
| 45 | */ |
||
| 46 | public function get(string $sKey, $xValue = null) |
||
| 51 |