protected function addByDay(Rule $rule) { $byDay = $rule->getByDay(); $this->addFragment($this->translator->trans('on')); $this->addFragment($this->getByDayAsText($byDay)); }