Skip to content

Commit

Permalink
fix: add object access typing
Browse files Browse the repository at this point in the history
  • Loading branch information
lkm committed Feb 29, 2024
1 parent 6762540 commit a0ed29b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/AuthServiceUser.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,9 @@ public function getBlobId(): ?string
return $this->blobId;
}

/**
* @return array<string, array<array{objectId: string, name: string, totalUsers?: float, defaultGroup?: string}>>
*/
public function getObjectAccess(): array
{
return $this->objectAccess;
Expand Down Expand Up @@ -155,6 +158,10 @@ public function setBlobId(?string $blobId): static
return $this;
}

/**
* @param array<string, array<array{objectId: string, name: string, totalUsers?: float, defaultGroup?: string}>> $objectAccess
* @return $this
*/
public function setObjectAccess(array $objectAccess): static
{
$this->objectAccess = $objectAccess;
Expand Down
8 changes: 8 additions & 0 deletions src/BookboonResourceOwner.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,14 @@ public function getApplicationId()
return $this->getValueByKey($this->response, 'application.id');
}

/**
* @return array<string, array<array{objectId: string, name: string, totalUsers?: float, defaultGroup?: string}>>
*/
public function getObjectAccess()
{
return $this->getValueByKey($this->response, 'user.objectAccess', []);
}

/**
* @return string[]
*/
Expand Down

0 comments on commit a0ed29b

Please sign in to comment.