private function getNextRunTime($interimName, Entity\Cron $runEntity)
    {
        $interval = new \DateInterval($this->jobs[$interimName]['increment']);
        $nextRunTime = clone $runEntity->getLastrun();
        $nextRunTime->add($interval);

        return $nextRunTime;
    }
private function getNextRunTime($interimName, Entity\Cron $runEntity)
    {
        $interval = new \DateInterval($this->jobs[$interimName]['increment']);
        $nextRunTime = clone $runEntity->getLastrun();
        $nextRunTime->add($interval);

        return $nextRunTime;
    }
private function getNextRunTime ( $ interimName , Entity \ Cron $ runEntity ) { $ interval = new \ DateInterval ( $ this -> jobs [ $ interimName ] [ 'increment' ] ) ; $ nextRunTime = clone $ runEntity -> getLastrun ( ) ; $ nextRunTime -> add ( $ interval ) ; return $ nextRunTime ; }
Get the next run time for a given interim.

@param string                    $interimName The interim; CRON_HOURLY, CRON_DAILY, CRON_WEEKLY, CRON_MONTHLY or CRON_YEARLY
@param \Bolt\Storage\Entity\Cron $runEntity   The last execution time of the interim

@return \DateTime
Get the next run time for a given interim .