aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-11-18 09:12:27 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2015-11-18 09:12:27 +0100
commit8db9c49cdad54ead062e9ee6662b013abf37ab33 (patch)
tree079566932740d9ca39d88522e0d89c62762a19f1 /lib
parentcd4380c32230c583cfe7d4ff3e630d272d4c9a1a (diff)
parent2fde6a77d7b586a5f51fdc9a93da1f3961e696e3 (diff)
downloadnextcloud-server-8db9c49cdad54ead062e9ee6662b013abf37ab33.tar.gz
nextcloud-server-8db9c49cdad54ead062e9ee6662b013abf37ab33.zip
Merge pull request #20551 from owncloud/notification-fix-tests
Notification - Add tests for the "return $this" and fix it on the new method
Diffstat (limited to 'lib')
-rw-r--r--lib/private/notification/action.php4
-rw-r--r--lib/private/notification/iaction.php1
2 files changed, 4 insertions, 1 deletions
diff --git a/lib/private/notification/action.php b/lib/private/notification/action.php
index 958b085b38e..8eade697025 100644
--- a/lib/private/notification/action.php
+++ b/lib/private/notification/action.php
@@ -50,7 +50,7 @@ class Action implements IAction {
$this->labelParsed = '';
$this->link = '';
$this->requestType = '';
- $this->icon = '';
+ $this->primary = false;
}
/**
@@ -99,6 +99,7 @@ class Action implements IAction {
/**
* @param $primary bool
+ * @return $this
* @throws \InvalidArgumentException if $primary is invalid
* @since 9.0.0
*/
@@ -108,6 +109,7 @@ class Action implements IAction {
}
$this->primary = $primary;
+ return $this;
}
/**
diff --git a/lib/private/notification/iaction.php b/lib/private/notification/iaction.php
index 4aed2e92517..f7366dd4388 100644
--- a/lib/private/notification/iaction.php
+++ b/lib/private/notification/iaction.php
@@ -62,6 +62,7 @@ interface IAction {
/**
* @param $primary bool
+ * @return $this
* @throws \InvalidArgumentException if $primary is invalid
* @since 9.0.0
*/