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