AbstractCollector   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
c 1
b 0
f 0
lcom 0
cbo 0
dl 0
loc 21
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A init() 0 1 1
A __construct() 0 10 1
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
}