interface Illuminate / Contracts / Process / ProcessResult

ProcessResult

Methods

public

command ( ) : string

Get the original command executed by the process.

public

successful ( ) : bool

Determine if the process was successful.

public

failed ( ) : bool

Determine if the process failed.

public

exitCode ( ) : int|null

Get the exit code of the process.

public

output ( ) : string

Get the standard output of the process.

public

errorOutput ( ) : string

Get the error output of the process.

public

throw ( callable $callback ) : $this

Throw an exception if the process failed.

Parameters

  • $callback callable|null
public

throwIf ( bool $condition , callable $callback ) : $this

Throw an exception if the process failed and the given condition is true.

Parameters

  • $condition bool
  • $callback callable|null