From 0009adae80cf9b3f8bcc40bd3f75d2a3f2cee6ad Mon Sep 17 00:00:00 2001 From: Maxence Lange Date: Tue, 6 Jun 2017 10:21:42 -0100 Subject: SharedWithDisplayName + SharedWithAvatar Signed-off-by: Maxence Lange Signed-off-by: Morris Jobke --- lib/private/Share20/Share.php | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) (limited to 'lib/private/Share20') diff --git a/lib/private/Share20/Share.php b/lib/private/Share20/Share.php index 1836d6708c5..d7810165dac 100644 --- a/lib/private/Share20/Share.php +++ b/lib/private/Share20/Share.php @@ -48,6 +48,10 @@ class Share implements \OCP\Share\IShare { /** @var string */ private $sharedWith; /** @var string */ + private $sharedWithDisplayName; + /** @var string */ + private $sharedWithAvatar; + /** @var string */ private $sharedBy; /** @var string */ private $shareOwner; @@ -251,6 +255,42 @@ class Share implements \OCP\Share\IShare { return $this->sharedWith; } + /** + * @inheritdoc + */ + public function setSharedWithDisplayName($displayName) { + if (!is_string($displayName)) { + throw new \InvalidArgumentException(); + } + $this->sharedWithDisplayName = $displayName; + return $this; + } + + /** + * @inheritdoc + */ + public function getSharedWithDisplayName() { + return $this->sharedWithDisplayName; + } + + /** + * @inheritdoc + */ + public function setSharedWithAvatar($src) { + if (!is_string($src)) { + throw new \InvalidArgumentException(); + } + $this->sharedWithAvatar = $src; + return $this; + } + + /** + * @inheritdoc + */ + public function getSharedWithAvatar() { + return $this->sharedWithAvatar; + } + /** * @inheritdoc */ -- cgit v1.2.3