From 0edb3b2ca09b250f8a68194ac16c0b90e0719638 Mon Sep 17 00:00:00 2001 From: Fabian Welzer Date: Thu, 9 Sep 2021 11:02:21 +0200 Subject: [PATCH] Allow other endpoints besides live/OTE --- src/Domrobot.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/Domrobot.php b/src/Domrobot.php index 23dc14d..16cb3b9 100644 --- a/src/Domrobot.php +++ b/src/Domrobot.php @@ -68,6 +68,20 @@ public function useOte(): self return $this; } + /** + * Configures the Domrobot to use a specified URL as endpoint. + * + * @param string $url + * + * @return self + */ + public function useUrl(string $url): self + { + $this->url = $url; + + return $this; + } + /** * @return bool Is the Domrobot configured to use the live endpoint? */