Skip to content

Commit

Permalink
Update OCP
Browse files Browse the repository at this point in the history
  • Loading branch information
nextcloud-command committed Dec 6, 2023
1 parent 8a21d1a commit 10e511a
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
1 change: 0 additions & 1 deletion OCP/FilesMetadata/IFilesMetadataManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ public function getMetadata(int $fileId, bool $generate = false): IFilesMetadata
*
* @return array File ID is the array key, files without metadata are not returned in the array
* @psalm-return array<int, IFilesMetadata>
* @throws FilesMetadataNotFoundException if not found
* @since 28.0.0
*/
public function getMetadataForFiles(array $fileIds): array;
Expand Down
19 changes: 18 additions & 1 deletion OCP/User/IOutOfOfficeData.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,24 @@

namespace OCP\User;

use JsonSerializable;
use OCP\IUser;

/**
* DTO to hold out-of-office information of a user
*
* @psalm-type OutOfOfficeData = array{
* id: string,
* userId: string,
* startDate: int,
* endDate: int,
* shortMessage: string,
* message: string,
* }
*
* @since 28.0.0
*/
interface IOutOfOfficeData {
interface IOutOfOfficeData extends JsonSerializable {
/**
* Get the unique token assigned to the current out-of-office event
*
Expand Down Expand Up @@ -74,4 +84,11 @@ public function getShortMessage(): string;
* @since 28.0.0
*/
public function getMessage(): string;

/**
* @return OutOfOfficeData
*
* @since 28.0.0
*/
public function jsonSerialize(): array;
}

0 comments on commit 10e511a

Please sign in to comment.