From 99a25de876dddb4a5aa66c6356030d819d6de875 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20Ko=CC=88rner?= Date: Sun, 23 Sep 2018 19:21:05 +0200 Subject: [PATCH] Add: brandValidationStatus --- lib/Model/Result/CollectSslResult.php | 25 +++++++++++++++++++++++++ lib/Util.php | 4 ++++ 2 files changed, 29 insertions(+) diff --git a/lib/Model/Result/CollectSslResult.php b/lib/Model/Result/CollectSslResult.php index 3f7cc8d..a61614a 100644 --- a/lib/Model/Result/CollectSslResult.php +++ b/lib/Model/Result/CollectSslResult.php @@ -106,6 +106,11 @@ class CollectSslResult extends AbstractResult */ protected $evClickThroughStatus; + /** + * @var integer + */ + protected $brandValidationStatus; + /** * @param bool $wrapCrt * @param bool $addDelimiter @@ -265,6 +270,26 @@ public function setEvClickThroughStatus($evClickThroughStatus) return $this; } + /** + * @return int + */ + public function getBrandValidationStatus() + { + return $this->brandValidationStatus; + } + + /** + * @param int $brandValidationStatus + * + * @return CollectSslResult + */ + public function setBrandValidationStatus($brandValidationStatus) + { + $this->brandValidationStatus = $brandValidationStatus; + + return $this; + } + /** * @return string */ diff --git a/lib/Util.php b/lib/Util.php index 1cb5ba9..df09072 100644 --- a/lib/Util.php +++ b/lib/Util.php @@ -365,6 +365,10 @@ public function collectSsl(array $params) $result->setEvClickThroughStatus(-1); } + if (!isset($arr['brandValidationStatus'])) { + $result->setBrandValidationStatus(-1); + } + return $result; } else { throw $this->createException($arr);