| Total Complexity | 7 |
| Total Lines | 75 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | class Bag |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @var array |
||
| 11 | */ |
||
| 12 | protected $aData = []; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @var string |
||
| 16 | */ |
||
| 17 | protected $sName = ''; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @var bool |
||
| 21 | */ |
||
| 22 | protected $bTouched = false; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * The constructor |
||
| 26 | * |
||
| 27 | * @param array $aData |
||
| 28 | */ |
||
| 29 | public function __construct(array $aData) |
||
| 32 | } |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @return bool |
||
| 36 | */ |
||
| 37 | public function touched() |
||
| 40 | } |
||
| 41 | |||
| 42 | /** |
||
| 43 | * @param string $sName |
||
| 44 | * |
||
| 45 | * @return Bag |
||
| 46 | */ |
||
| 47 | public function setName($sName) |
||
| 48 | { |
||
| 49 | $this->sName = $sName; |
||
| 50 | return $this; |
||
| 51 | } |
||
| 52 | |||
| 53 | /** |
||
| 54 | * @return array |
||
| 55 | */ |
||
| 56 | public function getAll() |
||
| 59 | } |
||
| 60 | |||
| 61 | /** |
||
| 62 | * @param string $sKey |
||
| 63 | * @param mixed $xValue |
||
| 64 | * |
||
| 65 | * @return void |
||
| 66 | */ |
||
| 67 | public function set($sKey, $xValue) |
||
| 71 | } |
||
| 72 | |||
| 73 | /** |
||
| 74 | * @param string $sKey |
||
| 75 | * @param mixed $xValue |
||
| 76 | * |
||
| 77 | * @return mixed |
||
| 78 | */ |
||
| 79 | public function get($sKey, $xValue = null) |
||
| 84 |