AdapterAbstract::getFileName()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
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