*/ class DateRangeAnalytic extends BaseDateRangeAnalytic { protected string $page; public function setPath(string $path): self { $this->path = $path; $this->reload = true; return $this; } protected function getEntities(string $type): array { $entities = parent::getEntities($type); $newEntities = []; foreach ($entities as $key => $entity) { if ('view' === $type) { if ($entity->getPath() === $this->path) { $newEntities[] = $entity; } } } return $newEntities; } }