Total Complexity | 3 |
Total Lines | 30 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
10 | class PolitenessPolicyListener |
||
11 | { |
||
12 | /** @var string */ |
||
13 | private $previousHostname; |
||
14 | |||
15 | /** @var int the delay in microseconds between requests to the same domain */ |
||
16 | private $requestDelay; |
||
17 | |||
18 | public $totalDelay = 0; |
||
19 | |||
20 | /** |
||
21 | * @param int $requestDelay the delay in milliseconds between requests to the same domain |
||
22 | */ |
||
23 | public function __construct($requestDelay) |
||
26 | } |
||
27 | |||
28 | /** |
||
29 | * @param GenericEvent $event |
||
30 | */ |
||
31 | public function onCrawlPreRequest(GenericEvent $event) |
||
42 |