setCleanup($settings['serialization']['cleanup_before_serialization']); } } /** * Get whether to cleanup the memory before serializing. * * @return bool */ public function getCleanup(): bool { return $this->cleanup; } /** * Set whether to cleanup the memory before serializing. * * @param bool $cleanup Whether to cleanup the memory before serializing. * * @return self */ public function setCleanup(bool $cleanup): self { $this->cleanup = $cleanup; return $this; } }