Guest User

Untitled

a guest
Apr 20th, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.32 KB | None | 0 0
  1. class Foo
  2. {
  3.     public $Bar {
  4.         public get { return $this->_Bar; }
  5.             public set { $this->_Bar = $value; }
  6.     }
  7.  
  8. }
  9.  
  10. class Foo
  11. {
  12.     public $Bar;
  13.  
  14.     public function getBar()
  15.         {
  16.         return $this->Bar;
  17.         }
  18.  
  19.         public function setBar($value)
  20.         {
  21.             $this->Bar = $value;
  22.         }
  23.  
  24. }
Add Comment
Please, Sign In to add comment