DLNode::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

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 1
nc 1
nop 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
}