| @@ 58-66 (lines=9) @@ | ||
| 55 | return $this->client->getDefaultOption(); |
|
| 56 | } |
|
| 57 | ||
| 58 | public function setDefaultAuth($username, $password, $type = 'basic') |
|
| 59 | { |
|
| 60 | $auth = [$username, $password]; |
|
| 61 | if ($type !== 'basic') { |
|
| 62 | $auth[] = $type; |
|
| 63 | } |
|
| 64 | ||
| 65 | $this->setDefaultAuth('auth', $auth); |
|
| 66 | } |
|
| 67 | ||
| 68 | /** |
|
| 69 | * @return Client |
|
| @@ 49-57 (lines=9) @@ | ||
| 46 | return $this->client->getConfig(); |
|
| 47 | } |
|
| 48 | ||
| 49 | public function setDefaultAuth($username, $password, $type = 'basic') |
|
| 50 | { |
|
| 51 | $auth = [$username, $password]; |
|
| 52 | if ($type !== 'basic') { |
|
| 53 | $auth[] = $type; |
|
| 54 | } |
|
| 55 | ||
| 56 | $this->setDefaultAuth('auth', $auth); |
|
| 57 | } |
|
| 58 | ||
| 59 | ||
| 60 | /** |
|