ILIAS  trunk Revision v12.0_alpha-377-g3641b37b9db
Exportable.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
39interface Exportable
40{
49 public function toExport(): array;
50
61 public static function fromExport(array $data): static;
62}
This interface allows an object to define its own transformation into a language-neutral,...
Definition: Exportable.php:40
toExport()
Transform the object into a simple, associative array.
static fromExport(array $data)
Creates an instance of the object from an array.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...