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

SinglyLinkedListNode::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 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
}