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

AbstractDetection::detect()

Size

Total Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 1
c 0
b 0
f 0
nc 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
}