| Conditions | 3 |
| Paths | 4 |
| Total Lines | 9 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 3 |
| Changes | 0 | ||
| 1 | <?php |
||
| 48 | 5 | public function __construct(Profiler $profiler) |
|
| 49 | { |
||
| 50 | 5 | foreach ($profiler->getCounters() as $counter) { |
|
| 51 | 5 | $this->reports[self::COUNTERS][$counter->getName()] = $counter->getReport(); |
|
| 52 | } |
||
| 53 | 5 | foreach ($profiler->getTimers() as $timer) { |
|
| 54 | 5 | $this->reports[self::TIMERS][$timer->getName()] = $timer->getReport(); |
|
| 55 | } |
||
| 56 | 5 | parent::__construct(); |
|
| 57 | 5 | } |
|
| 59 |