Completed
Push — master ( 700bb2...2360f5 )
by Philip
02:02
created

D::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 11
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 11
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 7
nc 1
nop 0
1
<?php
2
3
namespace PBurggraf\CRC\CRC32;
4
5
/**
6
 * @author Philip Burggraf <[email protected]>
7
 */
8
class D extends AbstractCRC32
9
{
10
    public function __construct()
11
    {
12
        $this->poly = 0xa833982b;
13
        $this->init = 0xffffffff;
14
15
        $this->reverseIn = true;
16
        $this->reverseOut = true;
17
        $this->xorOut = 0xffffffff;
18
19
        $this->lookupTable = $this->generateTable($this->poly);
20
    }
21
}
22