Completed
Push — master ( 522500...70aaf4 )
by Philip
01:33
created

Bluetooth::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 11
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 11
rs 9.4285
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 Bluetooth extends AbstractCRC8
9
{
10
    public function __construct()
11
    {
12
        $this->poly = 0xa7;
13
        $this->init = 0x00;
14
15
        $this->reverseIn = true;
16
        $this->reverseOut = true;
17
        $this->xorOut = 0x00;
18
19
        $this->lookupTable = $this->generateTable($this->poly);
20
    }
21
}
22