Completed
Push — develop ( 467115...a39d71 )
by Adrien
17:43
created

DgContainer   A

Complexity

Total Complexity 6

Size/Duplication

Total Lines 48
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
dl 0
loc 48
ccs 14
cts 14
cp 1
rs 10
c 0
b 0
f 0
wmc 6
lcom 1
cbo 0

6 Methods

Rating   Name   Duplication   Size   Complexity  
A setDgId() 0 4 1
A setLastSpId() 0 4 1
A getSpgrContainer() 0 4 1
A setSpgrContainer() 0 4 1
A getDgId() 0 4 1
A getLastSpId() 0 4 1
1
<?php
2
3
namespace PhpOffice\PhpSpreadsheet\Shared\Escher;
4
5
/**
6
 * Copyright (c) 2006 - 2016 PhpSpreadsheet.
7
 *
8
 * This library is free software; you can redistribute it and/or
9
 * modify it under the terms of the GNU Lesser General Public
10
 * License as published by the Free Software Foundation; either
11
 * version 2.1 of the License, or (at your option) any later version.
12
 *
13
 * This library is distributed in the hope that it will be useful,
14
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16
 * Lesser General Public License for more details.
17
 *
18
 * You should have received a copy of the GNU Lesser General Public
19
 * License along with this library; if not, write to the Free Software
20
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
21
 *
22
 * @category   PhpSpreadsheet
23
 *
24
 * @copyright  Copyright (c) 2006 - 2016 PhpSpreadsheet (https://github.com/PHPOffice/PhpSpreadsheet)
25
 * @license    http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt    LGPL
26
 */
27
class DgContainer
28
{
29
    /**
30
     * Drawing index, 1-based.
31
     *
32
     * @var int
33
     */
34
    private $dgId;
35
36
    /**
37
     * Last shape index in this drawing.
38
     *
39
     * @var int
40
     */
41
    private $lastSpId;
42
43
    private $spgrContainer = null;
44
45 10
    public function getDgId()
46
    {
47 10
        return $this->dgId;
48
    }
49
50 10
    public function setDgId($value)
51
    {
52 10
        $this->dgId = $value;
53 10
    }
54
55 10
    public function getLastSpId()
56
    {
57 10
        return $this->lastSpId;
58
    }
59
60 10
    public function setLastSpId($value)
61
    {
62 10
        $this->lastSpId = $value;
63 10
    }
64
65 10
    public function getSpgrContainer()
66
    {
67 10
        return $this->spgrContainer;
68
    }
69
70 10
    public function setSpgrContainer($spgrContainer)
71
    {
72 10
        return $this->spgrContainer = $spgrContainer;
73
    }
74
}
75