public function getMatchingRuleCount(): int
{ if ($this->data instanceof Data
) { return $this->data->
count();
} return \
count($this->data
);
} public function collect(Request
$request, Response
$response, ?\Throwable
$exception = null
): void
{ $this->data =
$this->
getMatchingRules();
} public static function getTemplate(): string
{ return '@Profiling/Collector/rules.html.twig';
} public function onContextResolved(SalesChannelContextResolvedEvent
$event): void
{ $this->ruleIds =
$event->
getContext()->
getRuleIds();
}