Posted By

mscribellito on 07/07/11


Tagged


Versions (?)

Node


 / Published in: PHP
 

  1. <?php
  2.  
  3. /*
  4.  * @class: Node
  5.  * @author: Michael Scribellito
  6.  * @date: 7-5-11
  7.  */
  8.  
  9. // Node abstraction
  10. class Node {
  11.  
  12. // data for node
  13. public $item;
  14. // link to previous node
  15. public $prev;
  16. // link to next node
  17. public $next;
  18.  
  19. public function __construct() {
  20.  
  21. $this->item = NULL;
  22. $this->prev = NULL;
  23. $this->next = NULL;
  24.  
  25. }
  26.  
  27. }

Report this snippet  

You need to login to post a comment.