From 0f13f4669cef42de4e4f757a495ca08f474adce6 Mon Sep 17 00:00:00 2001 From: NiiWiiCamo Date: Tue, 22 Aug 2023 12:55:35 +0200 Subject: [PATCH] added TXT handling --- src/Payload.php | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/src/Payload.php b/src/Payload.php index 560c0f7..921dc14 100644 --- a/src/Payload.php +++ b/src/Payload.php @@ -34,6 +34,11 @@ final class Payload */ private $ipv6; + /** + * @var string + */ + private $txt; + /** * @var bool */ @@ -65,6 +70,8 @@ final class Payload ( !empty($this->ipv6) && $this->isValidIpv6() ) + || + !empty($this->txt) ); } @@ -168,6 +175,14 @@ final class Payload return (bool)filter_var($this->ipv6, FILTER_VALIDATE_IP, FILTER_FLAG_IPV6); } + /** + * @return string + */ + public function getTxt() + { + return $this->txt; + } + /** * @return bool */ @@ -175,4 +190,4 @@ final class Payload { return $this->force; } -} \ No newline at end of file +}