Completed
Push — master ( 066d89...19607d )
by De
01:54
created

AbstractCollector::init()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 1
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 1
rs 10
cc 1
eloc 1
nc 1
nop 0
1
<?php
2
3
namespace Sokil\FraudDetector\Collector;
4
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
}