function=$function; } if (!empty($method)) { $this->method=$method; } if (!empty($data)) { $this->data=$data; } if (!empty($xtraHeaders)) { $this->extraHeaders=$xtraHeaders; } } public $method="GET"; public $function=null; public $data=[]; public $extraHeaders=[]; public $successCodes=["200","201"]; } ?>