8000 merged branch xrstf/2.0 (PR #5686) · symfony/symfony@9b3525c · GitHub
[go: up one dir, main page]

Skip to content

Commit 9b3525c

Browse files
committed
merged branch xrstf/2.0 (PR #5686)
This PR was merged into the 2.0 branch. Commits ------- b2614aa fixed CS e7c2e90 added doc comments Discussion ---------- added doc comments
2 parents 65dd6e0 + b2614aa commit 9b3525c

File tree

1 file changed

+71
-1
lines changed

1 file changed

+71
-1
lines changed

src/Symfony/Component/Process/Process.php

Lines changed: 71 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ public function hasBeenStopped()
279279
}
280280

281281
/**
282-
* Returns the number of the signal that caused the child process to stop its execution
282+
* Returns the number of the signal that caused the child process to stop its execution.
283283
*
284284
* It is only meaningful if hasBeenStopped() returns true.
285285
*
@@ -292,71 +292,141 @@ public function getStopSignal()
292292
return $this->status['stopsig'];
293293
}
294294

295+
/**
296+
* Adds a line to the STDOUT stream.
297+
*
298+
* @param string $line The line to append
299+
*/
295300
public function addOutput($line)
296301
{
297302
$this->stdout .= $line;
298303
}
299304

305+
/**
306+
* Adds a line to the STDERR stream.
307+
*
308+
* @param string $line The line to append
309+
*/
300310
public function addErrorOutput($line)
301311
{
302312
$this->stderr .= $line;
303313
}
304314

315+
/**
316+
* Gets the command line to be executed.
317+
*
318+
* @return string The command to execute
319+
*/
305320
public function getCommandLine()
306321
{
307322
return $this->commandline;
308323
}
309324

325+
/**
326+
* Sets the command line to be executed.
327+
*
328+
* @param string $commandline The command to execute
329+
*/
310330
public function setCommandLine($commandline)
311331
{
312332
$this->commandline = $commandline;
313333
}
314334

335+
/**
336+
* Gets the process timeout.
337+
*
338+
* @return integer The timeout in seconds
339+
*/
315340
public function getTimeout()
316341
{
317342
return $this->timeout;
318343
}
319344

345+
/**
346+
* Sets the process timeout.
347+
*
348+
* @param integer|null $timeout The timeout in seconds
349+
*/
320350
public function setTimeout($timeout)
321351
{
322352
$this->timeout = $timeout;
323353
}
324354

355+
/**
356+
* Gets the working directory.
357+
*
358+
* @return string The current working directory
359+
*/
325360
public function getWorkingDirectory()
326361
{
327362
return $this->cwd;
328363
}
329364

365+
/**
366+
* Sets the current working directory.
367+
*
368+
* @param string $cwd The new working directory
369+
*/
330370
public function setWorkingDirectory($cwd)
331371
{
332372
$this->cwd = $cwd;
333373
}
334374

375+
/**
376+
* Gets the environment variables.
377+
*
378+
* @return array The current environment variables
379+
*/
335380
public function getEnv()
336381
{
337382
return $this->env;
338383
}
339384

385+
/**
386+
* Sets the environment variables.
387+
*
388+
* @param array $env The new environment variables
389+
*/
340390
public function setEnv(array $env)
341391
{
342392
$this->env = $env;
343393
}
344394

395+
/**
396+
* Gets the contents of STDIN.
397+
*
398+
* @return string The current contents
399+
*/
345400
public function getStdin()
346401
{
347402
return $this->stdin;
348403
}
349404

405+
/**
406+
* Sets the contents of STDIN.
407+
*
408+
* @param string $stdin The new contents
409+
*/
350410
public function setStdin($stdin)
351411
{
352412
$this->stdin = $stdin;
353413
}
354414

415+
/**
416+
* Gets the options for proc_open.
417+
*
418+
* @return array The current options
419+
*/
355420
public function getOptions()
356421
{
357422
return $this->options;
358423
}
359424

425+
/**
426+
* Sets the options for proc_open.
427+
*
428+
* @param array $options The new options
429+
*/
360430
public function setOptions(array $options)
361431
{
362432
$this->options = $options;

0 commit comments

Comments
 (0)
0