Advertisement
peterurfi

Untitled

Nov 9th, 2011
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.24 KB | None | 0 0
  1. public $min;
  2. public $max;
  3.  
  4. public function __get($name) {
  5.     if(array_key_exists($name, $this->data)) {
  6.         return  $this->data['name'];
  7.     } else {
  8.         return false;
  9.     }
  10. }
  11.  
  12. public function __set($name, $value) {
  13.     $this->data['name'] = $value;
  14. }
  15.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement