public function appendNode($new_node)
    {
        $pos = $this->count();
        $new_node->setPosition($pos);
        $this->push($new_node);
    }
public function appendNode($new_node)
    {
        $pos = $this->count();
        $new_node->setPosition($pos);
        $this->push($new_node);
    }
public function appendNode ( $ new_node ) { $ pos = $ this -> count ( ) ; $ new_node -> setPosition ( $ pos ) ; $ this -> push ( $ new_node ) ; }
Adds a node onto the linked list.

@param mixed $new_node New node to add to the list

@return void
Adds a node onto the linked list .