diff options
author | Roeland Jago Douma <rullzer@owncloud.com> | 2016-05-18 18:21:27 +0200 |
---|---|---|
committer | Roeland Jago Douma <rullzer@owncloud.com> | 2016-05-18 18:21:27 +0200 |
commit | bd27eadf9e14335efdd4a537269ad2f5b49efc14 (patch) | |
tree | 9de9b0d511af6a3eb28c41eac82ccda808e541de /lib/public/Notification/IAction.php | |
parent | 4a94203492e3b475ee26b65d5992796152c645bd (diff) | |
download | nextcloud-server-bd27eadf9e14335efdd4a537269ad2f5b49efc14.tar.gz nextcloud-server-bd27eadf9e14335efdd4a537269ad2f5b49efc14.zip |
Move \OCP\Notification to PSR-4
Diffstat (limited to 'lib/public/Notification/IAction.php')
-rw-r--r-- | lib/public/Notification/IAction.php | 105 |
1 files changed, 105 insertions, 0 deletions
diff --git a/lib/public/Notification/IAction.php b/lib/public/Notification/IAction.php new file mode 100644 index 00000000000..1f4d1d5b7fe --- /dev/null +++ b/lib/public/Notification/IAction.php @@ -0,0 +1,105 @@ +<?php +/** + * @author Joas Schilling <nickvergessen@owncloud.com> + * + * @copyright Copyright (c) 2016, ownCloud, Inc. + * @license AGPL-3.0 + * + * This code is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License, version 3, + * as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License, version 3, + * along with this program. If not, see <http://www.gnu.org/licenses/> + * + */ + +namespace OCP\Notification; + +/** + * Interface IAction + * + * @package OCP\Notification + * @since 9.0.0 + */ +interface IAction { + /** + * @param string $label + * @return $this + * @throws \InvalidArgumentException if the label is invalid + * @since 9.0.0 + */ + public function setLabel($label); + + /** + * @return string + * @since 9.0.0 + */ + public function getLabel(); + + /** + * @param string $label + * @return $this + * @throws \InvalidArgumentException if the label is invalid + * @since 9.0.0 + */ + public function setParsedLabel($label); + + /** + * @return string + * @since 9.0.0 + */ + public function getParsedLabel(); + + /** + * @param $primary bool + * @return $this + * @throws \InvalidArgumentException if $primary is invalid + * @since 9.0.0 + */ + public function setPrimary($primary); + + /** + * @return bool + * @since 9.0.0 + */ + public function isPrimary(); + + /** + * @param string $link + * @param string $requestType + * @return $this + * @throws \InvalidArgumentException if the link is invalid + * @since 9.0.0 + */ + public function setLink($link, $requestType); + + /** + * @return string + * @since 9.0.0 + */ + public function getLink(); + + /** + * @return string + * @since 9.0.0 + */ + public function getRequestType(); + + /** + * @return bool + * @since 9.0.0 + */ + public function isValid(); + + /** + * @return bool + * @since 9.0.0 + */ + public function isValidParsed(); +} |