Skip to content

Commit

Permalink
Merge branch 'feature/thumb-obj' into 'main'
Browse files Browse the repository at this point in the history
feat: add thumb and objectAccess

See merge request internal/oauth2-client-php!11
  • Loading branch information
marge-bot committed Feb 28, 2024
2 parents 053c22f + b6ce632 commit 80f8026
Showing 1 changed file with 28 additions and 9 deletions.
37 changes: 28 additions & 9 deletions src/AuthServiceUser.php
Original file line number Diff line number Diff line change
Expand Up @@ -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[]
Expand All @@ -39,7 +41,7 @@ public function getUserIdentifier(): string

public function getThumbnail(): string
{
return "";
return $this->thumbnail;
}

public function getId(): string
Expand Down Expand Up @@ -97,6 +99,11 @@ public function getBlobId(): ?string
return $this->blobId;
}

public function getObjectAccess(): array
{
return $this->objectAccess;
}

public function eraseCredentials(): void
{
}
Expand Down Expand Up @@ -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;
}
}

0 comments on commit 80f8026

Please sign in to comment.