Skip to content

Commit 83ef34c

Browse files
committed
Add abstract methods to AbstractBlockBots
1 parent 4a9e77c commit 83ef34c

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/Abstracts/AbstractBlockBots.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
use Potelo\LaravelBlockBots\Contracts\Client;
77
use Carbon\Carbon;
88

9-
class AbstractBlockBots
9+
abstract class AbstractBlockBots
1010
{
1111
private $allowedBots = [];
1212
protected $request;
@@ -83,4 +83,10 @@ final protected function isTheFirstOverflow()
8383
{
8484
return $this->hits === $this->limit + 1;
8585
}
86+
87+
abstract protected function countHits();
88+
89+
abstract protected function isAllowed();
90+
91+
abstract protected function notAllowed();
8692
}

0 commit comments

Comments
 (0)