protected function computeIndex($toCompute)
    {
        if ($toCompute instanceof EventInterface) {
            $toCompute = $toCompute->getBegin();
        }
        $function = $this->indexFunction;

        return $function($toCompute);
    }
protected function computeIndex($toCompute)
    {
        if ($toCompute instanceof EventInterface) {
            $toCompute = $toCompute->getBegin();
        }
        $function = $this->indexFunction;

        return $function($toCompute);
    }
protected function computeIndex ( $ toCompute ) { if ( $ toCompute instanceof EventInterface ) { $ toCompute = $ toCompute -> getBegin ( ) ; } $ function = $ this -> indexFunction ; return $ function ( $ toCompute ) ; }
Computes event index.

@param EventInterface|\DateTime $toCompute

@return string
Computes event index .