@@ -614,22 +614,21 @@ public function stop($timeout=10)
614
614
public function addOutput ($ line )
615
615
{
616
616
$ this ->stdout .= $ line ;
617
-
618
- return $ this ;
619
617
}
620
618
621
619
public function addErrorOutput ($ line )
622
620
{
623
621
$ this ->stderr .= $ line ;
624
-
625
- return $ this ;
626
622
}
627
623
628
624
public function getCommandLine ()
629
625
{
630
626
return $ this ->commandline ;
631
627
}
632
628
629
+ /**
630
+ * @return self The current Process instance
631
+ */
633
632
public function setCommandLine ($ commandline )
634
633
{
635
634
$ this ->commandline = $ commandline ;
@@ -648,6 +647,8 @@ public function getTimeout()
648
647
* To disable the timeout, set this value to null.
649
648
*
650
649
* @param integer|null
650
+ *
651
+ * @return self The current Process instance
651
652
*/
652
653
public function setTimeout ($ timeout )
653
654
{
@@ -673,6 +674,9 @@ public function getWorkingDirectory()
673
674
return $ this ->cwd ;
674
675
}
675
676
677
+ /**
678
+ * @return self The current Process instance
679
+ */
676
680
public function setWorkingDirectory ($ cwd )
677
681
{
678
682
$ this ->cwd = $ cwd ;
@@ -685,6 +689,9 @@ public function getEnv()
685
689
return $ this ->env ;
686
690
}
687
691
692
+ /**
693
+ * @return self The current Process instance
694
+ */
688
695
public function setEnv (array $ env )
689
696
{
690
697
$ this ->env = $ env ;
@@ -697,6 +704,9 @@ public function getStdin()
697
704
return $ this ->stdin ;
698
705
}
699
706
707
+ /**
708
+ * @return self The current Process instance
709
+ */
700
710
public function setStdin ($ stdin )
701
711
{
702
712
$ this ->stdin = $ stdin ;
@@ -709,6 +719,9 @@ public function getOptions()
709
719
return $ this ->options ;
710
720
}
711
721
722
+ /**
723
+ * @return self The current Process instance
724
+ */
712
725
public function setOptions (array $ options )
713
726
{
714
727
$ this ->options = $ options ;
@@ -721,11 +734,14 @@ public function getEnhanceWindowsCompatibility()
721
734
return $ this ->enhanceWindowsCompatibility ;
722
735
}
723
736
737
+ /**
738
+ * @return self The current Process instance
739
+ */
724
740
public function setEnhanceWindowsCompatibility ($ enhance )
725
741
{
726
742
$ this ->enhanceWindowsCompatibility = (Boolean ) $ enhance ;
727
743
728
- return $ this ;'
744
+ return $ this ;
729
745
}
730
746
731
747
/**
@@ -746,10 +762,14 @@ public function getEnhanceSigchildCompatibility()
746
762
* the --enable-sigchild option
747
763
*
748
764
* @param Boolean $enhance
765
+ *
766
+ * @return self The current Process instance
749
767
*/
750
768
public function setEnhanceSigchildCompatibility ($ enhance )
751
769
{
752
770
$ this ->enhanceSigchildCompatibility = (Boolean ) $ enhance ;
771
+
772
+ return $ this ;
753
773
}
754
774
755
775
/**
0 commit comments