Completed
Push — develop ( 4fd8e7...d3e769 )
by Adrien
14:12 queued 07:04
created

CellsFactory::getInstance()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 3
nc 1
nop 1
dl 0
loc 6
ccs 0
cts 5
cp 0
crap 2
rs 9.4285
c 0
b 0
f 0
1
<?php
2
3
namespace PhpOffice\PhpSpreadsheet\Collection;
4
5
use PhpOffice\PhpSpreadsheet\Settings;
6
use PhpOffice\PhpSpreadsheet\Worksheet;
7
8
abstract class CellsFactory
9
{
10
    /**
11
     * Initialise the cache storage.
12
     *
13
     * @param Worksheet $parent Enable cell caching for this worksheet
14
     *
15
     * @return Cells
16
     * */
17
    public static function getInstance(Worksheet $parent)
18
    {
19
        $instance = new Cells($parent, Settings::getCache());
20
21
        return $instance;
22
    }
23
}
24