I just realized that the change in this file you did won't work. You see, we have to modify the constructor of this class which you didnt do. And also, using `$baseUrl` above won't work since there is no `$baseUrl` variable in this class. (It is only in the constructor). So, I would recommend the following change,

```php
    public function __construct({{if .Api.base_as_arg}}$baseUrl, {{end}}$auth = array(), array $options = array())
    {
{{if .Api.base_as_arg}}        $this->options['base'] = $baseUrl;
{{end}}{{if .Api.authorization.oauth}}
```

Also, please check the generated php library if there any indentation problems with the code I proposed.