Csv   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A setDelimiter() 0 5 1
1
<?php
2
declare(strict_types=1);
3
/**
4
 * Infrastructure Related Agent
5
 * @author Max Demian <[email protected]>
6
 */
7
8
namespace Ticaje\FileManager\Implementors\Reader\File\BoxSpout;
9
10
use Box\Spout\Common\Type;
11
use Ticaje\FileManager\Infrastructure\Driver\Reader\Interfaces\Gateway\CsvFileInterface;
12
13
/**
14
 * Class Csv
15
 * @package Ticaje\FileManager\Implementors\Reader\File
16
 */
17
class Csv extends Base implements CsvFileInterface
18
{
19
    /** @var string $type */
20
    protected $type = Type::CSV;
21
22
    /**
23
     * @inheritDoc
24
     */
25
    public function setDelimiter(string $delimiter): CsvFileInterface
26
    {
27
        $this->concretion->setFieldDelimiter($delimiter);
0 ignored issues
show
Bug introduced by
The method setFieldDelimiter() does not exist on Box\Spout\Reader\ReaderInterface. It seems like you code against a sub-type of Box\Spout\Reader\ReaderInterface such as Box\Spout\Reader\CSV\Reader. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

27
        $this->concretion->/** @scrutinizer ignore-call */ 
28
                           setFieldDelimiter($delimiter);
Loading history...
28
29
        return $this;
30
    }
31
32
}
33