From b6ce63254a45963e4ba5fd1b48d7363cf41d3ec1 Mon Sep 17 00:00:00 2001 From: Lasse Mammen Date: Wed, 28 Feb 2024 15:28:59 +0000 Subject: [PATCH] feat: add thumb and objectAccess Tested-by: marge-bot Part-of: --- src/AuthServiceUser.php | 37 ++++++++++++++++++++++++++++--------- 1 file changed, 28 insertions(+), 9 deletions(-) diff --git a/src/AuthServiceUser.php b/src/AuthServiceUser.php index 7348516..54a8723 100644 --- a/src/AuthServiceUser.php +++ b/src/AuthServiceUser.php @@ -7,14 +7,16 @@ class AuthServiceUser implements UserInterface { - private string $userId = ''; - private string $username = ''; - private array $roles = []; - private ?string $email = null; - private ?AccessTokenInterface $token = null; - private ?string $applicationId = null; - private ?string $organisationId = null; - private ?string $blobId = null; + protected string $userId = ''; + protected string $username = ''; + protected array $roles = []; + protected ?string $email = null; + protected ?AccessTokenInterface $token = null; + protected ?string $applicationId = null; + protected ?string $organisationId = null; + protected ?string $blobId = null; + protected string $thumbnail = ''; + protected array $objectAccess = []; /** * @return string[] @@ -39,7 +41,7 @@ public function getUserIdentifier(): string public function getThumbnail(): string { - return ""; + return $this->thumbnail; } public function getId(): string @@ -97,6 +99,11 @@ public function getBlobId(): ?string return $this->blobId; } + public function getObjectAccess(): array + { + return $this->objectAccess; + } + public function eraseCredentials(): void { } @@ -147,4 +154,16 @@ public function setBlobId(?string $blobId): static $this->blobId = $blobId; return $this; } + + public function setObjectAccess(array $objectAccess): static + { + $this->objectAccess = $objectAccess; + return $this; + } + + public function setThumbnail(string $thumbnail): static + { + $this->thumbnail = $thumbnail; + return $this; + } }