DLNode   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
dl 0
loc 13
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
1
<?php
2
3
namespace Ptypes;
4
5
/**
6
 * Doubly Linked Node (DLNode) is the node element for the DoublyLinkedList.
7
 */
8
class DLNode //Doubly Linked Node
9
{
10
	public $next = null, $prev = null; //A reference to the next and previous node
11
	public $data = null; //Data or a reference to data
12
13
	/**
14
	 * DLNode
15
	 *
16
	 * @param object $data
17
	 */
18
	public function __construct($data=null) 
19
	{
20
		$this->data = $data;
21
	}
22
}