IAccountProperty.php 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  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. * @package OCP\Account
  29. * @since 15.0.0
  30. */
  31. interface IAccountProperty extends \JsonSerializable {
  32. /**
  33. * Set the value of a property
  34. *
  35. * @since 15.0.0
  36. *
  37. * @param string $value
  38. * @return IAccountProperty
  39. */
  40. public function setValue(string $value): IAccountProperty;
  41. /**
  42. * Set the scope of a property
  43. *
  44. * @since 15.0.0
  45. *
  46. * @param string $scope
  47. * @return IAccountProperty
  48. */
  49. public function setScope(string $scope): IAccountProperty;
  50. /**
  51. * Set the verification status of a property
  52. *
  53. * @since 15.0.0
  54. *
  55. * @param string $verified
  56. * @return IAccountProperty
  57. */
  58. public function setVerified(string $verified): IAccountProperty;
  59. /**
  60. * Get the name of a property
  61. *
  62. * @since 15.0.0
  63. *
  64. * @return string
  65. */
  66. public function getName(): string;
  67. /**
  68. * Get the value of a property
  69. *
  70. * @since 15.0.0
  71. *
  72. * @return string
  73. */
  74. public function getValue(): string;
  75. /**
  76. * Get the scope of a property
  77. *
  78. * @since 15.0.0
  79. *
  80. * @return string
  81. */
  82. public function getScope(): string;
  83. /**
  84. * Get the verification status of a property
  85. *
  86. * @since 15.0.0
  87. *
  88. * @return string
  89. */
  90. public function getVerified(): string;
  91. }