Completed
Pull Request — develop (#300)
by Alessandro
63:47
created

HeaderFooterDrawing::getExtension()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 5
ccs 3
cts 3
cp 1
crap 1
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