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