diff --git a/src/AuthServiceUser.php b/src/AuthServiceUser.php index f5c98f9..8a53506 100644 --- a/src/AuthServiceUser.php +++ b/src/AuthServiceUser.php @@ -99,6 +99,9 @@ public function getBlobId(): ?string return $this->blobId; } + /** + * @return array> + */ public function getObjectAccess(): array { return $this->objectAccess; @@ -155,6 +158,10 @@ public function setBlobId(?string $blobId): static return $this; } + /** + * @param array> $objectAccess + * @return $this + */ public function setObjectAccess(array $objectAccess): static { $this->objectAccess = $objectAccess; diff --git a/src/BookboonResourceOwner.php b/src/BookboonResourceOwner.php index d813a0c..34a99f7 100644 --- a/src/BookboonResourceOwner.php +++ b/src/BookboonResourceOwner.php @@ -85,6 +85,14 @@ public function getApplicationId() return $this->getValueByKey($this->response, 'application.id'); } + /** + * @return array> + */ + public function getObjectAccess() + { + return $this->getValueByKey($this->response, 'user.objectAccess', []); + } + /** * @return string[] */