PhpBench\Benchmark\Remote\Payload::__construct PHP Method

__construct() public method

The template must be the path to a script template.
public __construct ( string $template, array $tokens = [], $phpBinary = PHP_BINARY, Process $process = null )
$template string
$tokens array
$process Symfony\Component\Process\Process
    public function __construct($template, array $tokens = [], $phpBinary = PHP_BINARY, Process $process = null)
    {
        $this->template = $template;
        $this->process = $process ?: new Process($phpBinary);
        $this->tokens = $tokens;
        // disable timeout.
        $this->process->setTimeout(null);
        $this->phpBinary = $phpBinary;
    }