Symfony\Component\Process\Process::isSuccessful PHP Method

isSuccessful() public method

Checks if the process ended successfully.
public isSuccessful ( ) : boolean
return boolean true if the process ended successfully, false otherwise
    public function isSuccessful()
    {
        return 0 === $this->getExitCode();
    }

Usage Example

 /**
  * @inheritDoc
  */
 public function isSuccessful()
 {
     if ($this->symfonyProcess->isSuccessful()) {
         echo "{$this->job->jobName()}: Has finished without errors.\n";
     }
     return $this->symfonyProcess->isSuccessful();
 }
All Usage Examples Of Symfony\Component\Process\Process::isSuccessful