This is an example:
class a {
private $arr = NULL;
public function __construct(array $arr) {
$this->arr = $arr;
}
public function __get($name) {
return $arr[$name];
}
}
this is a simple example. What i would like to do that$class = new a();
$class->
and pressing ->
I'm getting the dropdown list of properties he has declared, but I would like to get those throught __get()
magic methods. Is there any chances to declare properties later IN CODE or something?