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

HeaderFooterDrawing   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
dl 0
loc 17
ccs 0
cts 9
cp 0
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A getHashCode() 0 10 1
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