setName(self::NAME) ->setDescription('Returns the list of non-orphan visits.'); } protected function getVisitsPaginator(InputInterface $input, DateRange $dateRange): Paginator { return $this->visitsHelper->nonOrphanVisits(new VisitsParams($dateRange)); } /** * @return array */ protected function mapExtraFields(Visit $visit): array { $shortUrl = $visit->shortUrl; return $shortUrl === null ? [] : ['shortUrl' => $this->shortUrlStringifier->stringify($shortUrl)]; } }