@@ 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 |
|
@@ 760-773 (lines=14) @@ | ||
757 | * |
|
758 | * @throws \InvalidArgumentException |
|
759 | */ |
|
760 | public function setStatus($status) |
|
761 | { |
|
762 | $status = strtoupper($status); |
|
763 | if ($status == self::STATUS_CANCELLED |
|
764 | || $status == self::STATUS_CONFIRMED |
|
765 | || $status == self::STATUS_TENTATIVE |
|
766 | ) { |
|
767 | $this->status = $status; |
|
768 | } else { |
|
769 | throw new \InvalidArgumentException('Invalid value for status'); |
|
770 | } |
|
771 | ||
772 | return $this; |
|
773 | } |
|
774 | ||
775 | /** |
|
776 | * @deprecated Deprecated since version 0.11.0, to be removed in 1.0. Use addRecurrenceRule instead. |