Sets the finished callback.
This callback will be executed if the batch process is done.
callable $callback: The callback.
$this
public function setFinishCallback(callable $callback) { $this->finished = $callback; return $this; }