| Conditions | 4 |
| Paths | 8 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 4 |
| Changes | 0 | ||
| 1 | <?php |
||
| 56 | protected function valueDelta($name, $value) { |
||
| 57 | 2 | $this->blockDelta($name); |
|
| 58 | |||
| 59 | 1 | !isset($this->_deltas[$name]) ? $this->_deltas[$name] = 0 : false; |
|
| 60 | 1 | !isset($this->_startValues[$name]) ? $this->_startValues[$name] = 0 : false; |
|
| 61 | 1 | ||
| 62 | 1 | $value *= $this->_currentOperation === self::ACCESS_DELTA_DEC ? -1 : +1; |
|
| 63 | |||
| 64 | $this->_deltas[$name] += $value; |
||
| 65 | |||
| 66 | parent::__set($name, parent::__get($name) + $value); |
||
| 67 | |||
| 68 | $this->_currentOperation = self::ACCESS_SET; |
||
| 69 | 1 | } |
|
| 72 |