| Total Complexity | 7 |
| Total Lines | 64 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 8 | class Bag |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @var array |
||
| 12 | */ |
||
| 13 | protected $aData = []; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @var boolean |
||
| 17 | */ |
||
| 18 | protected $bTouched = false; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * The constructor |
||
| 22 | * |
||
| 23 | * @param array $aData |
||
| 24 | */ |
||
| 25 | public function __construct(array $aData) |
||
| 31 | } |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @return bool |
||
| 35 | */ |
||
| 36 | public function touched() |
||
| 39 | } |
||
| 40 | |||
| 41 | /** |
||
| 42 | * @return array |
||
| 43 | */ |
||
| 44 | public function getAll() |
||
| 47 | } |
||
| 48 | |||
| 49 | /** |
||
| 50 | * @param string $sBag |
||
| 51 | * @param string $sKey |
||
| 52 | * @param mixed $xValue |
||
| 53 | * |
||
| 54 | * @return void |
||
| 55 | */ |
||
| 56 | public function set($sBag, $sKey, $xValue) |
||
| 60 | } |
||
| 61 | |||
| 62 | /** |
||
| 63 | * @param string $sBag |
||
| 64 | * @param string $sKey |
||
| 65 | * @param mixed $xValue |
||
| 66 | * |
||
| 67 | * @return mixed |
||
| 68 | */ |
||
| 69 | public function get($sBag, $sKey, $xValue = null) |
||
| 74 |