Completed
Push — 4.0 ( c710b5...5960ab )
by Serhii
02:22
created

AbstractDetection   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Importance

Changes 0
Metric Value
wmc 1
lcom 1
cbo 0
dl 0
loc 15
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A init() 0 5 1
detect() 0 1 ?
1
<?php
2
3
4
namespace EndorphinStudio\Detector\Detection;
5
6
7
use EndorphinStudio\Detector\Detector;
8
9
abstract class AbstractDetection implements DetectionInterface
10
{
11
    /** @var array */
12
    protected $config;
13
    /** @var Detector */
14
    protected $detector;
15
16
    public function init(Detector $detector)
17
    {
18
        $this->detector = $detector;
19
        echo static::class.PHP_EOL;
20
    }
21
22
    public abstract function detect(string $ua);
0 ignored issues
show
Coding Style introduced by
The abstract declaration must precede the visibility declaration
Loading history...
23
}