Conditions | 1 |
Paths | 1 |
Total Lines | 8 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
22 | public function setFromInputErrorCumulative(InputErrorCumulative $cumulative) |
||
23 | { |
||
24 | $this->setBerAverage($cumulative->getAverageValue(InputErrorCumulative::VALUE_TYPE_BER)); |
||
25 | $this->setUncAverage($cumulative->getAverageValue(InputErrorCumulative::VALUE_TYPE_UNC)); |
||
26 | $this->setCumulativeTe($cumulative->getLastValue(InputErrorCumulative::VALUE_TYPE_TE)); |
||
27 | $this->setCumulativeCc($cumulative->getLastValue(InputErrorCumulative::VALUE_TYPE_CC)); |
||
28 | |||
29 | return $this; |
||
30 | } |
||
33 |