Completed
Push — master ( 1e6292...4ff32b )
by Philip
02:04
created

Cdma2000::__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\CRC8;
4
5
/**
6
 * @author Philip Burggraf <[email protected]>
7
 */
8
class Cdma2000 extends AbstractCRC8
9
{
10
    public function __construct()
11
    {
12
        $this->poly = 0x9b;
13
        $this->init = 0xff;
14
15
        $this->reverseIn = false;
16
        $this->reverseOut = false;
17
        $this->xorOut = 0x00;
18
19
        $this->lookupTable = $this->generateTable($this->poly);
20
    }
21
}
22