| Conditions | 3 |
| Paths | 4 |
| Total Lines | 12 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 12 |
| Changes | 0 | ||
| 1 | <?php |
||
| 41 | protected function valueDelta($name, $value) { |
||
| 42 | $this->blockDelta($name); |
||
| 43 | |||
| 44 | !isset($this->_deltas[$name]) ? $this->_deltas[$name] = 0 : false; |
||
| 45 | |||
| 46 | $value *= $this->_currentOperation === self::ACCESS_DELTA_DEC ? -1 : +1; |
||
| 47 | |||
| 48 | $this->_deltas[$name] += $value; |
||
| 49 | |||
| 50 | parent::__set($name, parent::__get($name) + $value); |
||
| 51 | |||
| 52 | $this->_currentOperation = self::ACCESS_SET; |
||
| 53 | } |
||
| 56 |