public function erase($all = false)
{
$this->stop();
$loop = new static();
$list = $all === true ? $this : $this->getTransferableProperties();
foreach ($list as $key => $val) {
$this->{$key} = $loop->{$key};
}
$this->flowController->isRunning = false;
return $this;
}