Completed
Pull Request — master (#338)
by Adrien
02:31
created

ReaderOptions   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 40%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getTempFolder() 0 4 1
A setTempFolder() 0 5 1
1
<?php
2
3
namespace Box\Spout\Reader\XLSX;
4
5
use Box\Spout\Reader\ReaderOptionsCommon;
6
7
/**
8
 * Class ReaderOptions
9
 * This class is used to customize the reader's behavior
10
 *
11
 * @package Box\Spout\Reader\XLSX
12
 */
13
class ReaderOptions extends ReaderOptionsCommon
14
{
15
    /** @var string|null Temporary folder where the temporary files will be created */
16
    protected $tempFolder = null;
17
18
    /**
19
     * @return string|null Temporary folder where the temporary files will be created
20
     */
21 105
    public function getTempFolder()
22
    {
23 105
        return $this->tempFolder;
24
    }
25
26
    /**
27
     * @param string|null $tempFolder Temporary folder where the temporary files will be created
28
     * @return ReaderOptions
29
     */
30
    public function setTempFolder($tempFolder)
31
    {
32
        $this->tempFolder = $tempFolder;
33
        return $this;
34
    }
35
}
36