Passed
Push — master ( fe617e...bc2c58 )
by Carlos C
14:43 queued 11s
created

CceFraccionArancelaria   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 5
c 1
b 0
f 0
dl 0
loc 18
rs 10
ccs 4
cts 4
cp 1
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A createInjector() 0 3 1
A sheetName() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace PhpCfdi\SatCatalogosPopulate\Importers\Cce;
6
7
use PhpCfdi\SatCatalogosPopulate\AbstractXlsOneSheetImporter;
8
use PhpCfdi\SatCatalogosPopulate\InjectorInterface;
9
10
class CceFraccionArancelaria extends AbstractXlsOneSheetImporter
11
{
12 2
    /** @var bool */
13
    private $recreateTable;
14 2
15
    public function __construct(bool $recreateTable)
16
    {
17 2
        $this->recreateTable = $recreateTable;
18
    }
19 2
20
    public function sheetName(): string
21
    {
22
        return 'c_FraccionArancelaria';
23
    }
24
25
    public function createInjector(string $csvFile): InjectorInterface
26
    {
27
        return new Injectors\FraccionesArancelarias($csvFile, $this->recreateTable);
28
    }
29
}
30