class Exporter

Methods

static int
prepare(array $values, SplObjectStorage $objectsPool, array $refsPool, int $objectsCount, bool $valuesAreStatic)

Prepares an array of values for VarExporter.

static 
export($value, $indent = '')

No description

Details

static int prepare(array $values, SplObjectStorage $objectsPool, array $refsPool, int $objectsCount, bool $valuesAreStatic)

Prepares an array of values for VarExporter.

For performance this method is public and has no type-hints.

Parameters

array $values &$values
SplObjectStorage $objectsPool
array $refsPool &$refsPool
int $objectsCount &$objectsCount
bool $valuesAreStatic &$valuesAreStatic

Return Value

int

Exceptions

NotInstantiableTypeException When a value cannot be serialized

static export($value, $indent = '')

Parameters

$value
$indent