Code Duplication    Length = 13-13 lines in 4 locations

src/Packet/Electricity/Current.php 1 location

@@ 7-19 (lines=13) @@
4
5
use Dalen\OWLPacketInterceptor\Packet\Base;
6
7
class Current extends Base
8
{
9
    function __construct($data = NULL)
10
    {
11
        $this->fields = array
12
        (
13
            'units' => '',
14
            'value' => '',
15
        );
16
        
17
        parent::__construct($data);
18
    }
19
}

src/Packet/Electricity/Day.php 1 location

@@ 7-19 (lines=13) @@
4
5
use Dalen\OWLPacketInterceptor\Packet\Base;
6
7
class Day extends Base
8
{
9
    function __construct($data = NULL)
10
    {
11
        $this->fields = array
12
        (
13
            'units' => '',
14
            'value' => '',
15
        );
16
        
17
        parent::__construct($data);
18
    }
19
}

src/Packet/Solar/Exporting.php 1 location

@@ 12-24 (lines=13) @@
9
 *
10
 * @author danieleorler
11
 */
12
class Exporting extends Base
13
{
14
    function __construct($data = NULL)
15
    {
16
        $this->fields = array
17
        (
18
            'units' => '',
19
            'value' => '',
20
        );
21
        
22
        parent::__construct($data);
23
    }
24
}
25

src/Packet/Solar/Generating.php 1 location

@@ 12-24 (lines=13) @@
9
 *
10
 * @author danieleorler
11
 */
12
class Generating extends Base
13
{
14
    function __construct($data = NULL)
15
    {
16
        $this->fields = array
17
        (
18
            'units' => '',
19
            'value' => '',
20
        );
21
        
22
        parent::__construct($data);
23
    }
24
}
25