Signal   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 0
cbo 1
dl 0
loc 13
ccs 6
cts 6
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 10 1
1
<?php
2
3
namespace Dalen\OWLPacketInterceptor\Packet\Electricity;
4
5
use Dalen\OWLPacketInterceptor\Packet\Base;
6
7
class Signal extends Base
8
{
9 8
    function __construct($data = NULL)
0 ignored issues
show
Best Practice introduced by
It is generally recommended to explicitly declare the visibility for methods.

Adding explicit visibility (private, protected, or public) is generally recommend to communicate to other developers how, and from where this method is intended to be used.

Loading history...
10
    {
11 8
        $this->fields = array
12
        (
13 8
            'rssi'  => '',
14 8
            'lqi'   => '',
15
        );
16
        
17 8
        parent::__construct($data);
18
    }
19
}