CsvAbstract   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
c 1
b 0
f 0
dl 0
loc 20
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 9 1
1
<?php
2
3
namespace Tleckie\Csv;
4
5
use SplFileObject;
6
7
/**
8
 * Class CsvAbstract
9
 *
10
 * @package Tleckie\Csv
11
 * @author  Teodoro Leckie Westberg <[email protected]>
12
 */
13
abstract class CsvAbstract extends SplFileObject
14
{
15
    /**
16
     * CsvAbstract constructor.
17
     *
18
     * @param string $file
19
     * @param string $separator
20
     * @param string $enclosure
21
     * @param string $escape
22
     * @param string $mode
23
     */
24
    public function __construct(
25
        string $file,
26
        string $separator,
27
        string $enclosure,
28
        string $escape,
29
        string $mode
30
    ) {
31
        parent::__construct($file, $mode);
32
        $this->setCsvControl($separator, $enclosure, $escape);
33
    }
34
}
35