Csv   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 2
dl 0
loc 11
ccs 5
cts 5
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 8 1
1
<?php
2
declare(strict_types = 1);
3
4
namespace Spreadsheet\File;
5
6
use Innmind\Filesystem\{
7
    File,
8
    StreamInterface,
9
    MediaType\MediaType
10
};
11
12
final class Csv extends File
13
{
14 6
    public function __construct(string $name, StreamInterface $content)
15
    {
16 6
        parent::__construct(
17 6
            basename($name, '.csv').'.csv',
18
            $content,
19 6
            MediaType::fromString('text/csv')
20
        );
21 6
    }
22
}
23