class Illuminate / Process / ProcessResult
You're browsing the documentation for an upcoming version of Laravel. The documentation and features of this release are subject to change.

ProcessResult

Implements

Properties

protected

$process Symfony\...\Process

The underlying process instance.

Default: null

Methods

public

__construct ( Symfony\...\Process $process ) : void

Create a new process result instance.

Parameters

  • $process Symfony\...\Process
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

seeInOutput ( string $output ) : bool

Determine if the output contains the given string.

Parameters

  • $output string
public

errorOutput ( ) : string

Get the error output of the process.

public

seeInErrorOutput ( string $output ) : bool

Determine if the error output contains the given string.

Parameters

  • $output string
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