ExcelFormat::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
crap 1
1
<?php
2
3
namespace Mathielen\ImportEngine\Storage\Format;
4
5
class ExcelFormat extends Format
6
{
7
    private $headerinfirstrow = true;
8
    private $activesheet = null;
9
    private $exceltype = 'Excel2007';
10
11
    protected $name = 'Excel File';
12
    protected $id = 'excel';
13
14 6
    public function __construct($headerinfirstrow = true)
15
    {
16 6
        $this->headerinfirstrow = $headerinfirstrow;
17 6
    }
18
19 4
    public function isHeaderInFirstRow()
20
    {
21 4
        return $this->headerinfirstrow;
22
    }
23
24 4
    public function getActivesheet()
25
    {
26 4
        return $this->activesheet;
27
    }
28
29 2
    public function getExceltype()
30
    {
31 2
        return $this->exceltype;
32
    }
33
}
34