public function finalize()
    {
        /** @var Process $process */
        $process = $this->process;

        if ($process) {
            $process->wait();

            if ($process->isSuccessful()) {
                $this->successful = true;
                $this->output =  $process->getOutput();
            } else {
                $this->successful = false;
                $this->output =  $process->getErrorOutput();
            }

            $this->postRun();

            unset($this->process);
        }
    }
public function finalize()
    {
        /** @var Process $process */
        $process = $this->process;

        if ($process) {
            $process->wait();

            if ($process->isSuccessful()) {
                $this->successful = true;
                $this->output =  $process->getOutput();
            } else {
                $this->successful = false;
                $this->output =  $process->getErrorOutput();
            }

            $this->postRun();

            unset($this->process);
        }
    }
public function finalize ( ) { /** @var Process $process */ $ process = $ this -> process ; if ( $ process ) { $ process -> wait ( ) ; if ( $ process -> isSuccessful ( ) ) { $ this -> successful = true ; $ this -> output = $ process -> getOutput ( ) ; } else { $ this -> successful = false ; $ this -> output = $ process -> getErrorOutput ( ) ; } $ this -> postRun ( ) ; unset ( $ this -> process ) ; } }
Finish up processing the job

@return void
Finish up processing the job