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

ReaderOptions::setTempFolder()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 5
ccs 0
cts 3
cp 0
rs 9.4285
c 1
b 0
f 0
cc 1
eloc 3
nc 1
nop 1
crap 2
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