Completed
Push — master ( 70aaf4...16a639 )
by Philip
01:32
created

Darc   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 0
cbo 1
dl 0
loc 14
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 11 1
1
<?php
2
3
namespace PBurggraf\CRC\CRC8;
4
5
/**
6
 * @author Philip Burggraf <[email protected]>
7
 */
8
class Darc extends AbstractCRC8
9
{
10
    public function __construct()
11
    {
12
        $this->poly = 0x39;
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