Problem
I think is a problem to have transport method hardcoded in line 81 cause it removes the flexibility of the code.
Solution
I'm adding the viability of setting it in the constructor without the need of creating or setting a new client for it and letting the class handle the client.
I also made some fix on some standards like optional parameters at the end of function declaration and type hinted $method in doRequest function
Problem I think is a problem to have transport method hardcoded in line 81 cause it removes the flexibility of the code.
Solution I'm adding the viability of setting it in the constructor without the need of creating or setting a new client for it and letting the class handle the client. I also made some fix on some standards like optional parameters at the end of function declaration and type hinted
$method
indoRequest
function