30 lines
506 B
PHP
30 lines
506 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
/**
|
|
* SPDX-FileCopyrightText: 2024 F7cloud GmbH and F7cloud contributors
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
|
*/
|
|
|
|
namespace OCA\Whiteboard\Model;
|
|
|
|
use OCP\IUser;
|
|
|
|
final class AuthenticatedUser implements User {
|
|
public function __construct(
|
|
private IUser $user,
|
|
) {
|
|
}
|
|
|
|
#[\Override]
|
|
public function getUID(): string {
|
|
return $this->user->getUID();
|
|
}
|
|
|
|
#[\Override]
|
|
public function getDisplayName(): string {
|
|
return $this->user->getDisplayName();
|
|
}
|
|
}
|