Completed
Push — develop ( d383bc...d9bd45 )
by Adrien
23:59
created

HeaderFooterDrawing::setWidth()   A

Complexity

Conditions 3
Paths 2

Size

Total Lines 12
Code Lines 5

Duplication

Lines 12
Ratio 100 %

Code Coverage

Tests 0
CRAP Score 12

Importance

Changes 0
Metric Value
cc 3
eloc 5
nc 2
nop 1
dl 12
loc 12
ccs 0
cts 6
cp 0
crap 12
rs 9.4285
c 0
b 0
f 0
1
<?php
2
3
namespace PhpOffice\PhpSpreadsheet\Worksheet;
4
5
class HeaderFooterDrawing extends Drawing
6
{
7
    /**
8
     * Get hash code.
9
     *
10
     * @return string Hash code
11
     */
12
    public function getHashCode()
13
    {
14
        return md5(
15
            $this->getPath() .
16
            $this->name .
17
            $this->offsetX .
18
            $this->offsetY .
19
            $this->width .
20
            $this->height .
21
            __CLASS__
22
        );
23
    }
24
}
25