Conditions | 2 |
Paths | 2 |
Total Lines | 16 |
Code Lines | 14 |
Lines | 0 |
Ratio | 0 % |
Tests | 15 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
12 | 2 | protected function extractDataFrom(AbstractReportable $reportable = null): void |
|
13 | { |
||
14 | 2 | $this->data = []; |
|
15 | 2 | if ($reportable instanceof ExtendedCounter) { |
|
16 | 2 | $this->data['name'] = $reportable->getName(); |
|
17 | 2 | $this->data['value'] = $reportable->getValue(); |
|
18 | 2 | $this->data['step'] = $reportable->getStep(); |
|
19 | 2 | $this->data['started'] = $reportable->isStarted(); |
|
20 | 2 | $this->data['initialValue'] = $reportable->getInitialValue(); |
|
21 | 2 | $this->data['bumped'] = $reportable->getBumped(); |
|
22 | 2 | $this->data['max'] = $reportable->getMax(); |
|
23 | 2 | $this->data['min'] = $reportable->getMin(); |
|
24 | 2 | $this->data['path'] = $reportable->getPath(); |
|
25 | 2 | $this->data['length'] = $reportable->getLength(); |
|
26 | 2 | $this->data['diff'] = $reportable->getDiff(); |
|
27 | 2 | $this->data['bumpedBack'] = $reportable->getBumpedBack(); |
|
28 | } |
||
31 |