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

BSE::setParent()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 1
dl 0
loc 4
ccs 0
cts 3
cp 0
crap 2
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace PhpOffice\PhpSpreadsheet\Shared\Escher\DggContainer\BstoreContainer;
4
5
class BSE
6
{
7
    const BLIPTYPE_ERROR = 0x00;
8
    const BLIPTYPE_UNKNOWN = 0x01;
9
    const BLIPTYPE_EMF = 0x02;
10
    const BLIPTYPE_WMF = 0x03;
11
    const BLIPTYPE_PICT = 0x04;
12
    const BLIPTYPE_JPEG = 0x05;
13
    const BLIPTYPE_PNG = 0x06;
14
    const BLIPTYPE_DIB = 0x07;
15
    const BLIPTYPE_TIFF = 0x11;
16
    const BLIPTYPE_CMYKJPEG = 0x12;
17
18
    /**
19
     * The parent BLIP Store Entry Container.
20
     *
21
     * @var \PhpOffice\PhpSpreadsheet\Shared\Escher\DggContainer\BstoreContainer
22
     */
23
    private $parent;
24
25
    /**
26
     * The BLIP (Big Large Image or Picture).
27
     *
28
     * @var BSE\Blip
29
     */
30
    private $blip;
31
32
    /**
33
     * The BLIP type.
34
     *
35
     * @var int
36
     */
37
    private $blipType;
38
39
    /**
40
     * Set parent BLIP Store Entry Container.
41
     *
42
     * @param \PhpOffice\PhpSpreadsheet\Shared\Escher\DggContainer\BstoreContainer $parent
43
     */
44
    public function setParent($parent)
45
    {
46
        $this->parent = $parent;
47
    }
48
49
    /**
50
     * Get the BLIP.
51
     *
52
     * @return BSE\Blip
53
     */
54
    public function getBlip()
55
    {
56
        return $this->blip;
57
    }
58
59
    /**
60
     * Set the BLIP.
61
     *
62
     * @param BSE\Blip $blip
63
     */
64
    public function setBlip($blip)
65
    {
66
        $this->blip = $blip;
67
        $blip->setParent($this);
68
    }
69
70
    /**
71
     * Get the BLIP type.
72
     *
73
     * @return int
74
     */
75
    public function getBlipType()
76
    {
77
        return $this->blipType;
78
    }
79
80
    /**
81
     * Set the BLIP type.
82
     *
83
     * @param int
84
     * @param mixed $blipType
85
     */
86
    public function setBlipType($blipType)
87
    {
88
        $this->blipType = $blipType;
89
    }
90
}
91