summaryrefslogtreecommitdiffstats
path: root/lib/public
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2020-12-23 11:05:29 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2020-12-23 11:05:29 +0100
commitbb411c75c6a7272f62a8e6b97b92075477694a3c (patch)
tree611b732354f313dd9ea90bfc7cdc43ff39520f18 /lib/public
parente0bafb7475d34a4788e62c6485b7b090db284242 (diff)
downloadnextcloud-server-bb411c75c6a7272f62a8e6b97b92075477694a3c.tar.gz
nextcloud-server-bb411c75c6a7272f62a8e6b97b92075477694a3c.zip
Move to single share event. Just emit more if needed
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'lib/public')
-rw-r--r--lib/public/Share/Events/ShareDeletedEvent.php22
1 files changed, 1 insertions, 21 deletions
diff --git a/lib/public/Share/Events/ShareDeletedEvent.php b/lib/public/Share/Events/ShareDeletedEvent.php
index 4db0e6767e6..4dca946aff3 100644
--- a/lib/public/Share/Events/ShareDeletedEvent.php
+++ b/lib/public/Share/Events/ShareDeletedEvent.php
@@ -37,9 +37,6 @@ class ShareDeletedEvent extends Event {
/** @var IShare */
private $share;
- /** @var IShare[] */
- private $children;
-
/**
*
* @param IShare $share
@@ -47,11 +44,10 @@ class ShareDeletedEvent extends Event {
*
* @since 21.0.0
*/
- public function __construct(IShare $share, array $children = []) {
+ public function __construct(IShare $share) {
parent::__construct();
$this->share = $share;
- $this->children = $children;
}
/**
@@ -61,20 +57,4 @@ class ShareDeletedEvent extends Event {
public function getShare(): IShare {
return $this->share;
}
-
- /**
- * @return IShare[]
- * @since 21.0.0
- */
- public function getChildren(): array {
- return $this->children;
- }
-
- /**
- * @return IShare[]
- * @since 21.0.0
- */
- public function getAllDeletedShares(): array {
- return array_merge([$this->share], $this->children);
- }
}