MMOframework
Pourquoi l'IA Playground Bibliothèques Documentation Rechercher Agence
FR EN
Index

iSerializable

MMO\core\interfaces · 1 symbole · générée le 27 Oct 2026

interface

iSerializable

iSerializable.php:9

Interface that describes an object that wants to alter the serialized data returned by \MMO\core\objects\serialize

interface MMO\core\interfaces\iSerializable
Espace de noms
MMO\core\interfaces

Index

serialize($path, $serializer) abstractSerialize the object
unserialize($data, $path, $instances) abstractUnserialize the object.

Méthodes2

serialize($path, $serializer)

abstractiSerializable.php:15

Serialize the object

abstract function serialize(string $path, callable $serializer): array
$pathstringthe current path for the serialization
$serializercallablethe function to call to serialize inner values. function (object|value $value, string $path): array
retournearray

unserialize($data, $path, $instances)

abstractiSerializable.php:23

Unserialize the object.

abstract function unserialize( array $data, string $path, Psr\Container\ContainerInterface|array &$instances ): void
$dataarray
$pathstringthe current path for the serialization
$instancesContainerInterface | array
retournevoid