| @@ 502-516 (lines=15) @@ | ||
| 499 | * |
|
| 500 | * @throws \InvalidArgumentException |
|
| 501 | */ |
|
| 502 | public function setMsBusyStatus($msBusyStatus) |
|
| 503 | { |
|
| 504 | $msBusyStatus = strtoupper($msBusyStatus); |
|
| 505 | if ($msBusyStatus == self::MS_BUSYSTATUS_FREE |
|
| 506 | || $msBusyStatus == self::MS_BUSYSTATUS_TENTATIVE |
|
| 507 | || $msBusyStatus == self::MS_BUSYSTATUS_BUSY |
|
| 508 | || $msBusyStatus == self::MS_BUSYSTATUS_OOF |
|
| 509 | ) { |
|
| 510 | $this->msBusyStatus = $msBusyStatus; |
|
| 511 | } else { |
|
| 512 | throw new \InvalidArgumentException('Invalid value for status'); |
|
| 513 | } |
|
| 514 | ||
| 515 | return $this; |
|
| 516 | } |
|
| 517 | ||
| 518 | /** |
|
| 519 | * @return string|null |
|
| @@ 763-776 (lines=14) @@ | ||
| 760 | * |
|
| 761 | * @throws \InvalidArgumentException |
|
| 762 | */ |
|
| 763 | public function setStatus($status) |
|
| 764 | { |
|
| 765 | $status = strtoupper($status); |
|
| 766 | if ($status == self::STATUS_CANCELLED |
|
| 767 | || $status == self::STATUS_CONFIRMED |
|
| 768 | || $status == self::STATUS_TENTATIVE |
|
| 769 | ) { |
|
| 770 | $this->status = $status; |
|
| 771 | } else { |
|
| 772 | throw new \InvalidArgumentException('Invalid value for status'); |
|
| 773 | } |
|
| 774 | ||
| 775 | return $this; |
|
| 776 | } |
|
| 777 | ||
| 778 | /** |
|
| 779 | * @deprecated Deprecated since version 0.11.0, to be removed in 1.0. Use addRecurrenceRule instead. |
|