mirror of
https://github.com/retailcrm/mailgun-php.git
synced 2024-11-29 08:26:06 +03:00
Dont break BC
This commit is contained in:
parent
1eab2cf3be
commit
9aed5e1234
@ -33,8 +33,17 @@ final class ShowResponse implements ApiResponse
|
|||||||
return $model;
|
return $model;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getWebhookUrls(): ?array
|
public function getWebhookUrl(): ?string
|
||||||
{
|
{
|
||||||
return $this->webhook['urls'] ?? null;
|
foreach ($this->getWebhookUrls() as $url) {
|
||||||
|
return $url;
|
||||||
|
}
|
||||||
|
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getWebhookUrls(): array
|
||||||
|
{
|
||||||
|
return $this->webhook['urls'] ?? [];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user