Guest User

Untitled

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