diff --git a/src/Exceptions/InvalidPeriod.php b/src/Exceptions/InvalidPeriod.php new file mode 100644 index 0000000..e6ee97c --- /dev/null +++ b/src/Exceptions/InvalidPeriod.php @@ -0,0 +1,11 @@ +periods)) { $this->keys->visits = $this->keys->period($period); + } else { + throw new InvalidPeriod($period); } return $this;