ILIAS  trunk Revision v11.0_alpha-1702-gfd3ecb7f852
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
Serializer.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
26 interface Serializer
27 {
28  public function __construct();
29 
30  public function serializePayload(array $payload_data): string;
31 
32  public function unserializePayload(string $payload_string): array;
33 
34  public function serializeValidity(?int $valid_until_timestamp): string;
35 
36  public function unserializeValidity(string $valid_until_string): ?int;
37 }
unserializeValidity(string $valid_until_string)
serializeValidity(?int $valid_until_timestamp)