Completed
Push — develop ( 8cf911...93ccf7 )
by Adrien
33:03
created

Escher::getDggContainer()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 2
c 0
b 0
f 0
nc 1
nop 0
dl 0
loc 4
ccs 2
cts 2
cp 1
crap 1
rs 10
1
<?php
2
3
namespace PhpOffice\PhpSpreadsheet\Shared;
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
 * @copyright  Copyright (c) 2006 - 2016 PhpSpreadsheet (https://github.com/PHPOffice/PhpSpreadsheet)
24
 * @license    http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt    LGPL
25
 * @version    ##VERSION##, ##DATE##
26
 */
27
class Escher
28
{
29
    /**
30
     * Drawing Group Container
31
     *
32
     * @var \DggContainer
33
     */
34
    private $dggContainer;
35
36
    /**
37
     * Drawing Container
38
     *
39
     * @var Escher\DgContainer
40
     */
41
    private $dgContainer;
42
43
    /**
44
     * Get Drawing Group Container
45
     *
46
     * @return Escher\DgContainer
47
     */
48 2
    public function getDggContainer()
49
    {
50 2
        return $this->dggContainer;
51
    }
52
53
    /**
54
     * Set Drawing Group Container
55
     *
56
     * @param Escher\DggContainer $dggContainer
57
     */
58 10
    public function setDggContainer($dggContainer)
59
    {
60 10
        return $this->dggContainer = $dggContainer;
0 ignored issues
show
Documentation Bug introduced by
It seems like $dggContainer of type object<PhpOffice\PhpSpre...ed\Escher\DggContainer> is incompatible with the declared type object<DggContainer> of property $dggContainer.

Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.

Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..

Loading history...
61
    }
62
63
    /**
64
     * Get Drawing Container
65
     *
66
     * @return Escher\DgContainer
67
     */
68 2
    public function getDgContainer()
69
    {
70 2
        return $this->dgContainer;
71
    }
72
73
    /**
74
     * Set Drawing Container
75
     *
76
     * @param Escher\DgContainer $dgContainer
77
     */
78 10
    public function setDgContainer($dgContainer)
79
    {
80 10
        return $this->dgContainer = $dgContainer;
81
    }
82
}
83