private function getVisitorProfileVisitSummary($visit)
    {
        $today = Date::today();

        $serverDate = $visit->getColumn('firstActionTimestamp');
        return array(
            'date'            => $serverDate,
            'prettyDate'      => Date::factory($serverDate)->getLocalized(Date::DATE_FORMAT_LONG),
            'daysAgo'         => (int)Date::secondsToDays($today->getTimestamp() - Date::factory($serverDate)->getTimestamp()),
            'referrerType'    => $visit->getColumn('referrerType'),
            'referrerUrl'     => $visit->getColumn('referrerUrl') ?: '',
            'referralSummary' => self::getReferrerSummaryForVisit($visit),
        );
    }
private function getVisitorProfileVisitSummary($visit)
    {
        $today = Date::today();

        $serverDate = $visit->getColumn('firstActionTimestamp');
        return array(
            'date'            => $serverDate,
            'prettyDate'      => Date::factory($serverDate)->getLocalized(Date::DATE_FORMAT_LONG),
            'daysAgo'         => (int)Date::secondsToDays($today->getTimestamp() - Date::factory($serverDate)->getTimestamp()),
            'referrerType'    => $visit->getColumn('referrerType'),
            'referrerUrl'     => $visit->getColumn('referrerUrl') ?: '',
            'referralSummary' => self::getReferrerSummaryForVisit($visit),
        );
    }
private function getVisitorProfileVisitSummary ( $ visit ) { $ today = Date :: today ( ) ; $ serverDate = $ visit -> getColumn ( 'firstActionTimestamp' ) ; return array ( 'date' => $ serverDate , 'prettyDate' => Date :: factory ( $ serverDate ) -> getLocalized ( Date :: DATE_FORMAT_LONG ) , 'daysAgo' => ( int ) Date :: secondsToDays ( $ today -> getTimestamp ( ) - Date :: factory ( $ serverDate ) -> getTimestamp ( ) ) , 'referrerType' => $ visit -> getColumn ( 'referrerType' ) , 'referrerUrl' => $ visit -> getColumn ( 'referrerUrl' ) ? : '' , 'referralSummary' => self :: getReferrerSummaryForVisit ( $ visit ) , ) ; }
Returns a summary for an important visit. Used to describe the first & last visits of a visitor.

@param DataTable\Row $visit
@return array
Returns a summary for an important visit . Used to describe the first & last visits of a visitor .