Persisters#

Persisters are responsible for persisting a Persistable object to storage and are also used by the Persistent Model meta-estimator to save and restore models.

Save#

To store a persistable object:

public save(Persistable $persistable) : void

Example

$persister->save($estimator);

Load#

Load the saved object from persistence:

public load() : Persistable

Example

$estimator = $persister->load();