public function setStdinFile(string $path): Process
    {
        if (!is_readable($path)) {
            throw new \InvalidArgumentException(
                "invalid value provided for 'path'; ".
                "'$path' is not a readable file"
            );
        }
        $this->spec[self::STDIN] = ["file", $path, "r"];
        $this->stdin = "";
        return $this;
    }
public function setStdinFile(string $path): Process
    {
        if (!is_readable($path)) {
            throw new \InvalidArgumentException(
                "invalid value provided for 'path'; ".
                "'$path' is not a readable file"
            );
        }
        $this->spec[self::STDIN] = ["file", $path, "r"];
        $this->stdin = "";
        return $this;
    }
public function setStdinFile ( string $ path ) : Process { if ( ! is_readable ( $ path ) ) { throw new \ InvalidArgumentException ( "invalid value provided for 'path'; " . "'$path' is not a readable file" ) ; } $ this -> spec [ self :: STDIN ] = [ "file" , $ path , "r" ] ; $ this -> stdin = "" ; return $ this ; }
Set the path to a file to read into stdin

@param string $path An absolute file path
@return \sndsgd\Process
@throws InvalidArgumentException If $path is not a readable file
Set the path to a file to read into stdin