/** * @return ParameterBag */ protected function buildParameterBag() { $parameterBag = new ParameterBag(); $parameterBag->setParam('FREQ', $this->freq); if (null !== $this->interval) { $parameterBag->setParam('INTERVAL', $this->interval); } if (null !== $this->count) { $parameterBag->setParam('COUNT', $this->count); } return $parameterBag; }
/** * @return ParameterBag */ protected function buildParameterBag() { $parameterBag = new ParameterBag(); $parameterBag->setParam('FREQ', $this->freq); if (null !== $this->interval) { $parameterBag->setParam('INTERVAL', $this->interval); } if (null !== $this->count) { $parameterBag->setParam('COUNT', $this->count); } if (null != $this->until) { $parameterBag->setParam('UNTIL', $this->until->format('Ymd\\THis\\Z')); } if (null !== $this->wkst) { $parameterBag->setParam('WKST', $this->wkst); } if (null !== $this->byMonth) { $parameterBag->setParam('BYMONTH', $this->byMonth); } if (null !== $this->byWeekNo) { $parameterBag->setParam('BYWEEKNO', $this->byWeekNo); } if (null !== $this->byYearDay) { $parameterBag->setParam('BYYEARDAY', $this->byYearDay); } if (null !== $this->byMonthDay) { $parameterBag->setParam('BYMONTHDAY', $this->byMonthDay); } if (null !== $this->byDay) { $parameterBag->setParam('BYDAY', $this->byDay); } if (null !== $this->byHour) { $parameterBag->setParam('BYHOUR', $this->byHour); } if (null !== $this->byMinute) { $parameterBag->setParam('BYMINUTE', $this->byMinute); } if (null !== $this->bySecond) { $parameterBag->setParam('BYSECOND', $this->bySecond); } return $parameterBag; }
/** * @param $name */ public function getParam($name) { return $this->parameterBag->getParam($name); }