示例#1
0
 private function setDateRepeat(Campaign $repeatingCampaign, DateRepeat $dateRepeat)
 {
     $repeatingCampaign->setInterval($dateRepeat->getInterval());
     $repeatingCampaign->setIntervalStartDate($dateRepeat->getIntervalStartDate());
     $repeatingCampaign->setIntervalNextRun($dateRepeat->getIntervalNextRun());
     $repeatingCampaign->setIntervalEndDate($dateRepeat->getIntervalEndDate());
     $repeatingCampaign->setIntervalEndOccurrence($dateRepeat->getIntervalEndOccurrence());
     return $repeatingCampaign;
 }