diff --git a/examples/07-metrics.php b/examples/07-metrics.php index 6aafd93..f1f7d69 100644 --- a/examples/07-metrics.php +++ b/examples/07-metrics.php @@ -1,11 +1,15 @@ get() as $proxy) { - echo $proxy . "\n"; +/** @var Proxy $proxy */ +$proxy = $scraper->get()->current(); + +foreach ($proxy->getMetrics() as $metric) { + echo $metric->getName() . ': ' . $metric->getValue() . "\n"; }