CsvResponse::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 15
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 7
c 1
b 0
f 0
dl 0
loc 15
rs 10
cc 1
nc 1
nop 6
1
<?php
2
3
/**
4
 * This file is part of the bugloos/export-bundle project.
5
 * (c) Bugloos <https://bugloos.com/>
6
 * For the full copyright and license information, please view
7
 * the LICENSE file that was distributed with this source code.
8
 */
9
10
namespace Bugloos\ExportBundle\Response;
11
12
/**
13
 * @author Mojtaba Gheytasi <[email protected] | [email protected]>
14
 */
15
class CsvResponse extends GeneralResponse
16
{
17
    public function __construct(
18
        $content,
19
        $fileName = 'output.csv',
20
        $contentType = 'text/csv',
21
        $contentDisposition = 'attachment',
22
        $status = self::HTTP_OK,
23
        $headers = []
24
    ) {
25
        parent::__construct(
26
            $content,
27
            $fileName,
28
            $contentType,
29
            $contentDisposition,
30
            $status,
31
            $headers
32
        );
33
    }
34
}
35