Lines Matching refs:string

31  * @implements \IteratorAggregate<string, string>
136 * @param string|null $cwd The working directory or null to use the working dir of the current PHP process
143 public function __construct(array $command, string $cwd = null, array $env = null, $input = null, ?float $timeout = 60)
182 * @param string $command The command line to pass to the shell of the OS
183 * @param string|null $cwd The working directory or null to use the working dir of the current PHP process
192 public static function fromShellCommandline(string $command, string $cwd = null, array $env = null, $input = null, ?float $timeout = 60)
574 * @return string
596 * @return string
623 * @return \Generator<string, string>
690 * @return string
713 * @return string
759 * Returns a string representation for the exit code returned by the process.
764 * @return string|null A string representation for the exit status code, null if the Process is not terminated
900 * @return string
951 public function addOutput(string $line)
965 public function addErrorOutput(string $line)
985 * @return string
1106 * @return string|null
1124 public function setWorkingDirectory(string $cwd)
1144 * @param array<string|\Stringable> $env The new environment variables
1158 * @return resource|string|\Iterator|null
1170 * @param string|int|float|bool|resource|\Traversable|null $input The content
1383 * @param string $caller The name of the method that needs fresh outputs
1388 private function readPipesForOutput(string $caller, bool $blocking = false)
1542 private function prepareWindowsCommandLine(string $cmd, array &$env): string
1593 private function requireProcessIsStarted(string $functionName)
1605 private function requireProcessIsTerminated(string $functionName)
1613 * Escapes a string to be used as a shell argument.
1615 private function escapeArgument(?string $argument): string
1634 private function replacePlaceholders(string $commandline, array $env)