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