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.

iaction.php 2.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. <?php
  2. /**
  3. * @author Joas Schilling <nickvergessen@owncloud.com>
  4. *
  5. * @copyright Copyright (c) 2016, ownCloud, Inc.
  6. * @license AGPL-3.0
  7. *
  8. * This code is free software: you can redistribute it and/or modify
  9. * it under the terms of the GNU Affero General Public License, version 3,
  10. * as published by the Free Software Foundation.
  11. *
  12. * This program is distributed in the hope that it will be useful,
  13. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. * GNU Affero General Public License for more details.
  16. *
  17. * You should have received a copy of the GNU Affero General Public License, version 3,
  18. * along with this program. If not, see <http://www.gnu.org/licenses/>
  19. *
  20. */
  21. namespace OCP\Notification;
  22. /**
  23. * Interface IAction
  24. *
  25. * @package OCP\Notification
  26. * @since 9.0.0
  27. */
  28. interface IAction {
  29. /**
  30. * @param string $label
  31. * @return $this
  32. * @throws \InvalidArgumentException if the label is invalid
  33. * @since 9.0.0
  34. */
  35. public function setLabel($label);
  36. /**
  37. * @return string
  38. * @since 9.0.0
  39. */
  40. public function getLabel();
  41. /**
  42. * @param string $label
  43. * @return $this
  44. * @throws \InvalidArgumentException if the label is invalid
  45. * @since 9.0.0
  46. */
  47. public function setParsedLabel($label);
  48. /**
  49. * @return string
  50. * @since 9.0.0
  51. */
  52. public function getParsedLabel();
  53. /**
  54. * @param $primary bool
  55. * @return $this
  56. * @throws \InvalidArgumentException if $primary is invalid
  57. * @since 9.0.0
  58. */
  59. public function setPrimary($primary);
  60. /**
  61. * @return bool
  62. * @since 9.0.0
  63. */
  64. public function isPrimary();
  65. /**
  66. * @param string $link
  67. * @param string $requestType
  68. * @return $this
  69. * @throws \InvalidArgumentException if the link is invalid
  70. * @since 9.0.0
  71. */
  72. public function setLink($link, $requestType);
  73. /**
  74. * @return string
  75. * @since 9.0.0
  76. */
  77. public function getLink();
  78. /**
  79. * @return string
  80. * @since 9.0.0
  81. */
  82. public function getRequestType();
  83. /**
  84. * @return bool
  85. * @since 9.0.0
  86. */
  87. public function isValid();
  88. /**
  89. * @return bool
  90. * @since 9.0.0
  91. */
  92. public function isValidParsed();
  93. }