WithHeaders   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setHeaders() 0 6 1
A getHeaders() 0 4 1
1
<?php
2
namespace Madewithlove\Export\Csv\Transformers;
3
4
trait WithHeaders
5
{
6
    /**
7
     * @var array
8
     */
9
    protected $headers = [];
10
11
    /**
12
     * @param array $headers
13
     *
14
     * @return static
15
     */
16 6
    public function setHeaders(array $headers)
17
    {
18 6
        $this->headers = $headers;
19
20 6
        return $this;
21
    }
22
23
    /**
24
     * @return array
25
     */
26 3
    public function getHeaders()
27
    {
28 3
        return $this->headers;
29
    }
30
}
31