AdapterAbstract   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 33
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 3
c 0
b 0
f 0
lcom 0
cbo 0
dl 0
loc 33
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getFileName() 0 4 1
A setFileName() 0 4 1
1
<?php
2
declare(strict_types=1);
3
4
namespace Crossjoin\Browscap\Parser\Sqlite\Adapter;
5
6
/**
7
 * Class AdapterAbstract
8
 *
9
 * @package Crossjoin\Browscap\Parser\Sqlite\Adapter
10
 * @author Christoph Ziegenberg <[email protected]>
11
 * @link https://github.com/crossjoin/browscap
12
 */
13
abstract class AdapterAbstract
14
{
15
    /**
16
     * @var string
17
     */
18
    protected $fileName;
19
20
    /**
21
     * PdoSqlite constructor.
22
     *
23
     * @param string $fileName
24
     */
25
    public function __construct(string $fileName)
26
    {
27
        $this->setFileName($fileName);
28
    }
29
30
    /**
31
     * @return string
32
     */
33
    protected function getFileName() : string
34
    {
35
        return $this->fileName;
36
    }
37
38
    /**
39
     * @param string $fileName
40
     */
41
    protected function setFileName(string $fileName)
42
    {
43
        $this->fileName = $fileName;
44
    }
45
}
46