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