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.

101 lines
2.1 KiB

3 years ago
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * @copyright Copyright (c) 2018 Julius Härtl <jus@bitgrid.net>
  5. *
  6. * @author Julius Härtl <jus@bitgrid.net>
  7. *
  8. * @license GNU AGPL version 3 or any later version
  9. *
  10. * This program is free software: you can redistribute it and/or modify
  11. * it under the terms of the GNU Affero General Public License as
  12. * published by the Free Software Foundation, either version 3 of the
  13. * License, or (at your option) any later version.
  14. *
  15. * This program 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 License
  21. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  22. *
  23. */
  24. namespace OCP\Accounts;
  25. /**
  26. * Interface IAccountProperty
  27. *
  28. * @since 15.0.0
  29. */
  30. interface IAccountProperty extends \JsonSerializable {
  31. /**
  32. * Set the value of a property
  33. *
  34. * @since 15.0.0
  35. *
  36. * @param string $value
  37. * @return IAccountProperty
  38. */
  39. public function setValue(string $value): IAccountProperty;
  40. /**
  41. * Set the scope of a property
  42. *
  43. * @since 15.0.0
  44. *
  45. * @param string $scope
  46. * @return IAccountProperty
  47. */
  48. public function setScope(string $scope): IAccountProperty;
  49. /**
  50. * Set the verification status of a property
  51. *
  52. * @since 15.0.0
  53. *
  54. * @param string $verified
  55. * @return IAccountProperty
  56. */
  57. public function setVerified(string $verified): IAccountProperty;
  58. /**
  59. * Get the name of a property
  60. *
  61. * @since 15.0.0
  62. *
  63. * @return string
  64. */
  65. public function getName(): string;
  66. /**
  67. * Get the value of a property
  68. *
  69. * @since 15.0.0
  70. *
  71. * @return string
  72. */
  73. public function getValue(): string;
  74. /**
  75. * Get the scope of a property
  76. *
  77. * @since 15.0.0
  78. *
  79. * @return string
  80. */
  81. public function getScope(): string;
  82. /**
  83. * Get the verification status of a property
  84. *
  85. * @since 15.0.0
  86. *
  87. * @return string
  88. */
  89. public function getVerified(): string;
  90. }