8000 [Process] fixed previous merge · dirkaholic/symfony@b2dd04d · GitHub
[go: up one dir, main page]

Skip to content

Commit b2dd04d

Browse files
committed
[Process] fixed previous merge
1 parent edf694b commit b2dd04d

File tree

1 file changed

+25
-5
lines changed

1 file changed

+25
-5
lines changed

src/Symfony/Component/Process/Process.php

Lines changed: 25 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -614,22 +614,21 @@ public function stop($timeout=10)
614614
public function addOutput($line)
615615
{
616616
$this->stdout .= $line;
617-
618-
return $this;
619617
}
620618

621619
public function addErrorOutput($line)
622620
{
623621
$this->stderr .= $line;
624-
625-
return $this;
626622
}
627623

628624
public function getCommandLine()
629625
{
630626
return $this->commandline;
631627
}
632628

629+
/**
630+
* @return self The current Process instance
631+
*/
633632
public function setCommandLine($commandline)
634633
{
635634
$this->commandline = $commandline;
@@ -648,6 +647,8 @@ public function getTimeout()
648647
* To disable the timeout, set this value to null.
649648
*
650649
* @param integer|null
650+
*
651+
* @return self The current Process instance
651652
*/
652653
public function setTimeout($timeout)
653654
{
@@ -673,6 +674,9 @@ public function getWorkingDirectory()
673674
return $this->cwd;
674675
}
675676

677+
/**
678+
* @return self The current Process instance
679+
*/
676680
public function setWorkingDirectory($cwd)
677681
{
678682
$this->cwd = $cwd;
@@ -685,6 +689,9 @@ public function getEnv()
685689
return $this->env;
686690
}
687691

692+
/**
693+
* @return self The current Process instance
694+
*/
688695
public function setEnv(array $env)
689696
{
690697
$this->env = $env;
@@ -697,6 +704,9 @@ public function getStdin()
697704
return $this->stdin;
698705
}
699706

707+
/**
708+
* @return self The current Process instance
709+
*/
700710
public function setStdin($stdin)
701711
{
702712
$this->stdin = $stdin;
@@ -709,6 +719,9 @@ public function getOptions()
709719
return $this->options;
710720
}
711721

722+
/**
723+
* @return self The current Process instance
724+
*/
712725
public function setOptions(array $options)
713726
{
714727
$this->options = $options;
@@ -721,11 +734,14 @@ public function getEnhanceWindowsCompatibility()
721734
return $this->enhanceWindowsCompatibility;
722735
}
723736

737+
/**
738+
* @return self The current Process instance
739+
*/
724740
public function setEnhanceWindowsCompatibility($enhance)
725741
{
726742
$this->enhanceWindowsCompatibility = (Boolean) $enhance;
727743

728-
return $this;'
744+
return $this;
729745
}
730746

731747
/**
@@ -746,10 +762,14 @@ public function getEnhanceSigchildCompatibility()
746762
* the --enable-sigchild option
747763
*
748764
* @param Boolean $enhance
765+
*
766+
* @return self The current Process instance
749767
*/
750768
public function setEnhanceSigchildCompatibility($enhance)
751769
{
752770
$this->enhanceSigchildCompatibility = (Boolean) $enhance;
771+
772+
return $this;
753773
}
754774

755775
/**

0 commit comments

Comments
 (0)
0