Skip to content

Commit

Permalink
[Process] fixed previous merge
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed Oct 3, 2012
1 parent edf694b commit b2dd04d
Showing 1 changed file with 25 additions and 5 deletions.
30 changes: 25 additions & 5 deletions src/Symfony/Component/Process/Process.php
Original file line number Diff line number Diff line change
Expand Up @@ -614,22 +614,21 @@ public function stop($timeout=10)
public function addOutput($line)
{
$this->stdout .= $line;

return $this;
}

public function addErrorOutput($line)
{
$this->stderr .= $line;

return $this;
}

public function getCommandLine()
{
return $this->commandline;
}

/**
* @return self The current Process instance
*/
public function setCommandLine($commandline)
{
$this->commandline = $commandline;
Expand All @@ -648,6 +647,8 @@ public function getTimeout()
* To disable the timeout, set this value to null.
*
* @param integer|null
*
* @return self The current Process instance
*/
public function setTimeout($timeout)
{
Expand All @@ -673,6 +674,9 @@ public function getWorkingDirectory()
return $this->cwd;
}

/**
* @return self The current Process instance
*/
public function setWorkingDirectory($cwd)
{
$this->cwd = $cwd;
Expand All @@ -685,6 +689,9 @@ public function getEnv()
return $this->env;
}

/**
* @return self The current Process instance
*/
public function setEnv(array $env)
{
$this->env = $env;
Expand All @@ -697,6 +704,9 @@ public function getStdin()
return $this->stdin;
}

/**
* @return self The current Process instance
*/
public function setStdin($stdin)
{
$this->stdin = $stdin;
Expand All @@ -709,6 +719,9 @@ public function getOptions()
return $this->options;
}

/**
* @return self The current Process instance
*/
public function setOptions(array $options)
{
$this->options = $options;
Expand All @@ -721,11 +734,14 @@ public function getEnhanceWindowsCompatibility()
return $this->enhanceWindowsCompatibility;
}

/**
* @return self The current Process instance
*/
public function setEnhanceWindowsCompatibility($enhance)
{
$this->enhanceWindowsCompatibility = (Boolean) $enhance;

return $this;'
return $this;
}

/**
Expand All @@ -746,10 +762,14 @@ public function getEnhanceSigchildCompatibility()
* the --enable-sigchild option
*
* @param Boolean $enhance
*
* @return self The current Process instance
*/
public function setEnhanceSigchildCompatibility($enhance)
{
$this->enhanceSigchildCompatibility = (Boolean) $enhance;

return $this;
}

/**
Expand Down

0 comments on commit b2dd04d

Please sign in to comment.