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

Blip   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 57
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
dl 0
loc 57
ccs 10
cts 10
cp 1
rs 10
c 0
b 0
f 0
wmc 4
lcom 0
cbo 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getData() 0 4 1
A setData() 0 4 1
A setParent() 0 4 1
A getParent() 0 4 1
1
<?php
2
3
namespace PhpOffice\PhpSpreadsheet\Shared\Escher\DggContainer\BstoreContainer\BSE;
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 Blip
28
{
29
    /**
30
     * The parent BSE.
31
     *
32
     * @var \PhpOffice\PhpSpreadsheet\Shared\Escher\DggContainer\BstoreContainer\BSE
33
     */
34
    private $parent;
35
36
    /**
37
     * Raw image data.
38
     *
39
     * @var string
40
     */
41
    private $data;
42
43
    /**
44
     * Get the raw image data.
45
     *
46
     * @return string
47
     */
48 7
    public function getData()
49
    {
50 7
        return $this->data;
51
    }
52
53
    /**
54
     * Set the raw image data.
55
     *
56
     * @param string
57
     * @param mixed $data
58
     */
59 7
    public function setData($data)
60
    {
61 7
        $this->data = $data;
62 7
    }
63
64
    /**
65
     * Set parent BSE.
66
     *
67
     * @param \PhpOffice\PhpSpreadsheet\Shared\Escher\DggContainer\BstoreContainer\BSE $parent
68
     */
69 7
    public function setParent($parent)
70
    {
71 7
        $this->parent = $parent;
72 7
    }
73
74
    /**
75
     * Get parent BSE.
76
     *
77
     * @return \PhpOffice\PhpSpreadsheet\Shared\Escher\DggContainer\BstoreContainer\BSE $parent
78
     */
79 7
    public function getParent()
80
    {
81 7
        return $this->parent;
82
    }
83
}
84