Code Completion for private/protected member variables when using magic __get()

Cedosuets

New Member
How do I setup code completion to work on Zend Studio (or any Eclipse based IDE) when working with a class that has private or protected member variables WITHOUT resorting to a bunch of Getter's OR setting the member vars as public.For example:\[code\]class Dog { protected $bark = 'woof!'; public function __get($key) { if (isset($this->$key)) { return $this->$key; } }}$Dog = new Dog();echo $Dog->bark; // <-- I want the IDE to "know" that bark is a property of Dog.\[/code\]
 
Back
Top