Index

iSerializable

MMO\core\interfaces · 1 symbol · generated 30 Sep 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
Namespace
MMO\core\interfaces

Index

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

Methods2

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
returnsarray

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
returnsvoid