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

BSE   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 86
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Test Coverage

Coverage 0%

Importance

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

5 Methods

Rating   Name   Duplication   Size   Complexity  
A setParent() 0 4 1
A getBlip() 0 4 1
A setBlip() 0 5 1
A getBlipType() 0 4 1
A setBlipType() 0 4 1
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