safriansah

antrian bank node

Aug 14th, 2018
4,759
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.42 KB | None | 0 0
  1. <?php
  2.   class node{
  3.     private $next,$no;
  4.     public function input($a){
  5.       $this->no=$a;
  6.       $this->next=null;
  7.     }
  8.     public function read(){
  9.       echo '<div class="nomor col-3">'.$this->no.'</div>';
  10.     }
  11.     public function setNext($a){
  12.       $this->next=$a;
  13.     }
  14.     public function getNext(){
  15.       return $this->next;
  16.     }
  17.     public function getNo(){
  18.       return $this->no;
  19.     }
  20.   }
  21. ?>
Add Comment
Please, Sign In to add comment