Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 9 |
CRAP Score | 2 |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php declare(strict_types=1); |
||
17 | 4 | protected function extractDataFrom(AbstractReportable $reportable = null): void |
|
18 | { |
||
19 | 4 | $this->data = []; |
|
20 | 4 | if ($reportable instanceof SimpleCounter) { |
|
21 | 4 | $this->name = $this->data['name'] = $reportable->getName(); |
|
22 | 4 | $this->value = $this->data['value'] = $reportable->getValue(); |
|
23 | 4 | $this->step = $this->data['step'] = $reportable->getStep(); |
|
24 | 4 | $this->started = $this->data['started'] = $reportable->isStarted(); |
|
25 | 4 | $this->initialValue = $this->data['initialValue'] = $reportable->getInitialValue(); |
|
26 | 4 | $this->bumped = $this->data['bumped'] = $reportable->getBumped(); |
|
27 | } |
||
30 |