Completed
Push — develop ( 29208e...50a0ec )
by Adrien
05:34
created

WriterPart   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 31
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getParentWriter() 0 4 1
A __construct() 0 4 1
1
<?php
2
3
namespace PhpOffice\PhpSpreadsheet\Writer\Xlsx;
4
5
use PhpOffice\PhpSpreadsheet\Writer\Xlsx;
6
7
abstract class WriterPart
8
{
9
    /**
10
     * Parent Xlsx object.
11
     *
12
     * @var Xlsx
13
     */
14
    private $parentWriter;
15
16
    /**
17
     * Get parent Xlsx object.
18
     *
19
     * @throws \PhpOffice\PhpSpreadsheet\Writer\Exception
20
     *
21
     * @return Xlsx
22
     */
23
    public function getParentWriter()
24
    {
25
        return $this->parentWriter;
26
    }
27
28
    /**
29
     * Set parent Xlsx object.
30
     *
31
     * @param Xlsx $pWriter
32
     */
33
    public function __construct(Xlsx $pWriter)
34
    {
35
        $this->parentWriter = $pWriter;
36
    }
37
}
38