/** * @inheritdoc */ public function setMax($max) { if ($max > 7) { throw new InvalidArgumentException('Dia da semana inválido.'); } return parent::setMax($max); }
/** * @inheritdoc */ public function setMax($max) { if ($max > 12) { throw new InvalidArgumentException('Mês inválido.'); } return parent::setMax($max); }