| 1 | <?php |
||
| 5 | abstract class AbstractCollector implements CollectorInterface |
||
| 6 | { |
||
| 7 | protected $key; |
||
| 8 | |||
| 9 | protected $requestNum; |
||
| 10 | |||
| 11 | protected $timeInterval; |
||
| 12 | |||
| 13 | public function __construct($key, $requestNum, $timeInterval) |
||
| 14 | { |
||
| 15 | $this->key = $key; |
||
| 16 | |||
| 17 | $this->requestNum = $requestNum; |
||
| 18 | |||
| 19 | $this->timeInterval = $timeInterval; |
||
| 20 | |||
| 21 | $this->init(); |
||
| 22 | } |
||
| 23 | |||
| 24 | protected function init() {} |
||
| 25 | } |