You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Status.php 1.5KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <?php
  2. /*
  3. * *
  4. * * Dav App
  5. * *
  6. * * @copyright 2023 Anna Larch <anna.larch@gmx.net>
  7. * *
  8. * * @author Anna Larch <anna.larch@gmx.net>
  9. * *
  10. * * This library is free software; you can redistribute it and/or
  11. * * modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE
  12. * * License as published by the Free Software Foundation; either
  13. * * version 3 of the License, or any later version.
  14. * *
  15. * * This library is distributed in the hope that it will be useful,
  16. * * but WITHOUT ANY WARRANTY; without even the implied warranty of
  17. * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  18. * * GNU AFFERO GENERAL PUBLIC LICENSE for more details.
  19. * *
  20. * * You should have received a copy of the GNU Affero General Public
  21. * * License along with this library. If not, see <http://www.gnu.org/licenses/>.
  22. * *
  23. *
  24. */
  25. namespace OCA\DAV\CalDAV\Status;
  26. class Status {
  27. public function __construct(private string $status = '', private ?string $message = null, private ?string $customMessage = null) {
  28. }
  29. public function getStatus(): string {
  30. return $this->status;
  31. }
  32. public function setStatus(string $status): void {
  33. $this->status = $status;
  34. }
  35. public function getMessage(): ?string {
  36. return $this->message;
  37. }
  38. public function setMessage(?string $message): void {
  39. $this->message = $message;
  40. }
  41. public function getCustomMessage(): ?string {
  42. return $this->customMessage;
  43. }
  44. public function setCustomMessage(?string $customMessage): void {
  45. $this->customMessage = $customMessage;
  46. }
  47. }