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.

DeclarativeSettingsSetValueEvent.php 1021B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <?php
  2. namespace OCP\Settings\Events;
  3. use OCP\EventDispatcher\Event;
  4. use OCP\IUser;
  5. use OCP\Settings\IDeclarativeSettingsForm;
  6. /**
  7. * @psalm-import-type DeclarativeSettingsValueTypes from IDeclarativeSettingsForm
  8. *
  9. * @since 29.0.0
  10. */
  11. class DeclarativeSettingsSetValueEvent extends Event {
  12. /**
  13. * @param DeclarativeSettingsValueTypes $value
  14. * @since 29.0.0
  15. */
  16. public function __construct(
  17. private IUser $user,
  18. private string $app,
  19. private string $formId,
  20. private string $fieldId,
  21. private mixed $value,
  22. ) {
  23. parent::__construct();
  24. }
  25. /**
  26. * @since 29.0.0
  27. */
  28. public function getUser(): IUser {
  29. return $this->user;
  30. }
  31. /**
  32. * @since 29.0.0
  33. */
  34. public function getApp(): string {
  35. return $this->app;
  36. }
  37. /**
  38. * @since 29.0.0
  39. */
  40. public function getFormId(): string {
  41. return $this->formId;
  42. }
  43. /**
  44. * @since 29.0.0
  45. */
  46. public function getFieldId(): string {
  47. return $this->fieldId;
  48. }
  49. /**
  50. * @since 29.0.0
  51. */
  52. public function getValue(): mixed {
  53. return $this->value;
  54. }
  55. }