DataStructures/Lists/CircularLinkedList.php 1 location
                
                
                    
                                                
                                                    
                                |  | @@ 32-38 (lines=7) @@ | 
                                                            
                                    | 29 |  |     private $current; | 
                                                            
                                    | 30 |  |     private $position; | 
                                                            
                                    | 31 |  |  | 
                                                            
                                    | 32 |  |     public function __construct() { | 
                                                            
                                    | 33 |  |         $this->head = null; | 
                                                            
                                    | 34 |  |         $this->tail = &$this->head; | 
                                                            
                                    | 35 |  |         $this->size = 0; | 
                                                            
                                    | 36 |  |         $this->position = 0; | 
                                                            
                                    | 37 |  |         $this->current = &$this->head; | 
                                                            
                                    | 38 |  |     } | 
                                                            
                                    | 39 |  |  | 
                                                            
                                    | 40 |  |      | 
                                                            
                                    | 41 |  |     /** | 
                                                                        
                 
                                                            
                    
DataStructures/Lists/DoublyLinkedList.php 1 location
                
                
                    
                                                
                                                    
                                |  | @@ 33-39 (lines=7) @@ | 
                                                            
                                    | 30 |  |     private $position; | 
                                                            
                                    | 31 |  |     private $current; | 
                                                            
                                    | 32 |  |  | 
                                                            
                                    | 33 |  |     public function __construct() { | 
                                                            
                                    | 34 |  |         $this->head = null; | 
                                                            
                                    | 35 |  |         $this->tail = &$this->head; | 
                                                            
                                    | 36 |  |         $this->size = 0; | 
                                                            
                                    | 37 |  |         $this->position = 0; | 
                                                            
                                    | 38 |  |         $this->current = &$this->head; | 
                                                            
                                    | 39 |  |     } | 
                                                            
                                    | 40 |  |  | 
                                                            
                                    | 41 |  |     /** | 
                                                            
                                    | 42 |  |      * Gets the node stored in the position especified. | 
                                                                        
                 
                                                            
                    
DataStructures/Lists/SinglyLinkedList.php 1 location
                
                
                    
                                                
                                                    
                                |  | @@ 32-37 (lines=6) @@ | 
                                                            
                                    | 29 |  |     private $position; | 
                                                            
                                    | 30 |  |     private $current; | 
                                                            
                                    | 31 |  |  | 
                                                            
                                    | 32 |  |     public function __construct() { | 
                                                            
                                    | 33 |  |         $this->head = null; | 
                                                            
                                    | 34 |  |         $this->size = 0; | 
                                                            
                                    | 35 |  |         $this->position = 0; | 
                                                            
                                    | 36 |  |         $this->current = &$this->head; | 
                                                            
                                    | 37 |  |     } | 
                                                            
                                    | 38 |  |  | 
                                                            
                                    | 39 |  |     /** | 
                                                            
                                    | 40 |  |      * {@inheritDoc} |