src/Kunstmaan/DashboardBundle/Command/GoogleAnalyticsOverviewsGenerateCommand.php
private function generateOverviewsOfSegment($segmentId)
    {
        /** @var AnalyticsSegmentRepository $segmentRepository */
        $segmentRepository = $this->em->getRepository('KunstmaanDashboardBundle:AnalyticsSegment');
        $segment = $segmentRepository->find($segmentId);

        if (!$segment) {
            throw new \InvalidArgumentException('Unknown segment ID');
        }

        // init the segment
        $segmentRepository->initSegment($segment);
    }
private function generateOverviewsOfSegment($segmentId)
    {
        /** @var AnalyticsSegmentRepository $segmentRepository */
        $segmentRepository = $this->em->getRepository('KunstmaanDashboardBundle:AnalyticsSegment');
        $segment = $segmentRepository->find($segmentId);

        if (!$segment) {
            throw new \InvalidArgumentException('Unknown segment ID');
        }

        // init the segment
        $segmentRepository->initSegment($segment);
    }
private function generateOverviewsOfSegment ( $ segmentId ) { /** @var AnalyticsSegmentRepository $segmentRepository */ $ segmentRepository = $ this -> em -> getRepository ( 'KunstmaanDashboardBundle:AnalyticsSegment' ) ; $ segment = $ segmentRepository -> find ( $ segmentId ) ; if ( ! $ segment ) { throw new \ InvalidArgumentException ( 'Unknown segment ID' ) ; } // init the segment $ segmentRepository -> initSegment ( $ segment ) ; }
Get all overviews of a segment

@param int $segmentId

@return array

@throws \InvalidArgumentException
Get all overviews of a segment