From bd92b2a4c0da0932dce2206cacaf9b1850dbff60 Mon Sep 17 00:00:00 2001 From: Justin Smith Date: Mon, 11 Feb 2019 14:44:05 -0700 Subject: [PATCH] Allow creation of ASN access rule Added setASN() method to allow creation of ASN access rules --- src/Configurations/AccessRules.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Configurations/AccessRules.php b/src/Configurations/AccessRules.php index 17ea57f6..ece5e621 100644 --- a/src/Configurations/AccessRules.php +++ b/src/Configurations/AccessRules.php @@ -21,6 +21,11 @@ public function setCountry(string $value) $this->config = ['target' => 'country', 'value' => $value]; } + public function setASN(string $value) + { + $this->config = ['target' => 'asn', 'value' => $value]; + } + public function getArray(): array { return $this->config;