ExcelFormat   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 29
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 4
lcom 0
cbo 1
dl 0
loc 29
ccs 9
cts 9
cp 1
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A isHeaderInFirstRow() 0 4 1
A getActivesheet() 0 4 1
A getExceltype() 0 4 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