| @@ 341-350 (lines=10) @@ | ||
| 338 | * |
|
| 339 | * @return $this |
|
| 340 | */ |
|
| 341 | public function setByYearDay($day) |
|
| 342 | { |
|
| 343 | if (!is_integer($day) || $day > 366 || $day < -366 || $day === 0) { |
|
| 344 | throw new InvalidArgumentException('Invalid value for BYYEARDAY'); |
|
| 345 | } |
|
| 346 | ||
| 347 | $this->byYearDay = $day; |
|
| 348 | ||
| 349 | return $this; |
|
| 350 | } |
|
| 351 | ||
| 352 | /** |
|
| 353 | * The BYMONTHDAY rule part specifies a COMMA-separated list of days of the month. |
|
| @@ 362-371 (lines=10) @@ | ||
| 359 | * |
|
| 360 | * @throws \InvalidArgumentException |
|
| 361 | */ |
|
| 362 | public function setByMonthDay($day) |
|
| 363 | { |
|
| 364 | if (!is_integer($day) || $day > 31 || $day < -31 || $day === 0) { |
|
| 365 | throw new InvalidArgumentException('Invalid value for BYMONTHDAY'); |
|
| 366 | } |
|
| 367 | ||
| 368 | $this->byMonthDay = $day; |
|
| 369 | ||
| 370 | return $this; |
|
| 371 | } |
|
| 372 | ||
| 373 | /** |
|
| 374 | * The BYDAY rule part specifies a COMMA-separated list of days of the week;. |
|