Total Complexity | 3 |
Total Lines | 38 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
18 | class HumanDelayValidator implements ValidatorInterface |
||
19 | { |
||
20 | /** |
||
21 | * @var string |
||
22 | */ |
||
23 | protected $title; |
||
24 | /** |
||
25 | * @var WikiBotConfig |
||
26 | */ |
||
27 | protected $bot; |
||
28 | /** |
||
29 | * @var LoggerInterface |
||
30 | */ |
||
31 | protected $log; |
||
32 | |||
33 | public function __construct(string $title, WikiBotConfig $bot) |
||
34 | { |
||
35 | $this->title = $title; |
||
36 | $this->bot = $bot; |
||
37 | $this->log = $bot->getLogger(); |
||
38 | } |
||
39 | |||
40 | public function validate(): bool |
||
56 | } |
||
57 | } |