JsonSerializer
in package
FinalYes
Contains helper static methods to serialize OCP classes into arrays to pass json_encode.
Useful for events implementing \JsonSerializable.
Tags
Table of Contents
Methods
- serializeFileInfo() : array<string|int, mixed>
- serializeUser() : array<string|int, mixed>
Methods
serializeFileInfo()
public
static serializeFileInfo(FileInfo $node) : array<string|int, mixed>
Parameters
- $node : FileInfo
Tags
Return values
array<string|int, mixed>serializeUser()
public
static serializeUser(IUser $user) : array<string|int, mixed>
Parameters
- $user : IUser