Completed
Push — master ( b35ffe...d5e5c7 )
by Siro Díaz
01:25
created

SinglyLinkedListNode   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 8
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
1
<?php
2
/**
3
 * DataStructures for PHP
4
 *
5
 * @link      https://github.com/SiroDiaz/DataStructures
6
 * @copyright Copyright (c) 2017 Siro Díaz Palazón
7
 * @license   https://github.com/SiroDiaz/DataStructures/blob/master/README.md (MIT License)
8
 */
9
namespace DataStructures\Lists\Nodes;
10
11
/**
12
 * SinglyLinkedListNode is the node atomic structure of lists.
13
 *
14
 * @author Siro Diaz Palazon <[email protected]>
15
 */
16
class SinglyLinkedListNode {
17
    public $data = null;
18
    public $next = null;
19
20
    public function __construct($data) {
21
        $this->data = $data;
22
    }
23
}