You are here

public function Process::isSuccessful in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/process/Process.php \Symfony\Component\Process\Process::isSuccessful()

Checks if the process ended successfully.

Return value

bool true if the process ended successfully, false otherwise

File

vendor/symfony/process/Process.php, line 623

Class

Process
Process is a thin wrapper around proc_* functions to easily start independent PHP processes.

Namespace

Symfony\Component\Process

Code

public function isSuccessful() {
  return 0 === $this
    ->getExitCode();
}