src/Kunstmaan/DashboardBundle/Command/GoogleAnalyticsOverviewsListCommand.php
private function getOverviewsOfSegment($segmentId)
    {
        // get specified segment
        $segmentRepository = $this->em->getRepository('KunstmaanDashboardBundle:AnalyticsSegment');
        $segment = $segmentRepository->find($segmentId);

        if (!$segment) {
            throw new \Exception('Unkown segment ID');
        }

        // get the overviews
        return $segment->getOverviews();
    }
private function getOverviewsOfSegment($segmentId)
    {
        // get specified segment
        $segmentRepository = $this->em->getRepository('KunstmaanDashboardBundle:AnalyticsSegment');
        $segment = $segmentRepository->find($segmentId);

        if (!$segment) {
            throw new \Exception('Unkown segment ID');
        }

        // get the overviews
        return $segment->getOverviews();
    }
private function getOverviewsOfSegment ( $ segmentId ) { // get specified segment $ segmentRepository = $ this -> em -> getRepository ( 'KunstmaanDashboardBundle:AnalyticsSegment' ) ; $ segment = $ segmentRepository -> find ( $ segmentId ) ; if ( ! $ segment ) { throw new \ Exception ( 'Unkown segment ID' ) ; } // get the overviews return $ segment -> getOverviews ( ) ; }
get all overviews of a segment

@param int $segmentId

@return array
get all overviews of a segment