| @@ 31-38 (lines=8) @@ | ||
| 28 | * |
|
| 29 | * @param Client|null $client |
|
| 30 | */ |
|
| 31 | public function __construct(Client $client = null) |
|
| 32 | { |
|
| 33 | if (null === $client) { |
|
| 34 | $client = new Client([RequestOptions::TIMEOUT => 10]); |
|
| 35 | } |
|
| 36 | ||
| 37 | $this->client = $client; |
|
| 38 | } |
|
| 39 | ||
| 40 | ||
| 41 | /** |
|
| @@ 31-41 (lines=11) @@ | ||
| 28 | * |
|
| 29 | * @param null $client |
|
| 30 | */ |
|
| 31 | public function __construct($client = null) |
|
| 32 | { |
|
| 33 | if (null === $client) { |
|
| 34 | $client = new Client([ |
|
| 35 | RequestOptions::TIMEOUT => 10, |
|
| 36 | RequestOptions::ALLOW_REDIRECTS => false, |
|
| 37 | ]); |
|
| 38 | } |
|
| 39 | ||
| 40 | $this->client = $client; |
|
| 41 | } |
|
| 42 | ||
| 43 | /** |
|
| 44 | * @param Webhook $webhook |
|