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

CellsFactory   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 0%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A getInstance() 0 6 1
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