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); |
||
20 | 3 | protected function extractDataFrom(AbstractReportable $reportable = null): void |
|
21 | { |
||
22 | 3 | $this->data = []; |
|
23 | 3 | if ($reportable instanceof ExtendedCounter) { |
|
24 | 3 | $this->name = $this->data['name'] = $reportable->getName(); |
|
25 | 3 | $this->value = $this->data['value'] = $reportable->getValue(); |
|
26 | 3 | $this->step = $this->data['step'] = $reportable->getStep(); |
|
27 | 3 | $this->started = $this->data['started'] = $reportable->isStarted(); |
|
28 | 3 | $this->initialValue = $this->data['initialValue'] = $reportable->getInitialValue(); |
|
29 | 3 | $this->bumped = $this->data['bumped'] = $reportable->getBumped(); |
|
30 | 3 | $this->max = $this->data['max'] = $reportable->getMax(); |
|
31 | 3 | $this->min = $this->data['min'] = $reportable->getMin(); |
|
32 | 3 | $this->path = $this->data['path'] = $reportable->getPath(); |
|
33 | 3 | $this->length = $this->data['length'] = $reportable->getLength(); |
|
34 | 3 | $this->diff = $this->data['diff'] = $reportable->getDiff(); |
|
35 | 3 | $this->bumpedBack = $this->data['bumpedBack'] = $reportable->getBumpedBack(); |
|
36 | } |
||
39 |