What I'm trying to do is bitwise flagging when using setPARAM().
What I know is magic function __get() or __set() being called when you refering protected variables and its also not a good practice.
So,
// This is an example for what I did.
class boo {
// @var string name ;
public $name;
// @var int edit ;
public $edit;
public function setName($var=null) {
.. do stuff..
}
}
Every time when I add an property, class requires additional get, set function. Can I handle this differently except using __set()
?