eclipse pdt how to assign object to private variable, so code assist help you to finish up names

How do you make eclipse see certain variable as an object?

Variable is passed in the constructor as an object.

I want code assist work with this -> variable as $object-> variable

for instance:

I don't get help from code assist to finish function name, when it's actually usefull when names of methods are long.
The other problem is that when I hold ctrl button it does not highlight function and does not move me there after clicking with ctrl :( :(

Can anybody help?

Who is Participating?
AlexanderRConnect With a Mentor Enterprise Web DeveloperCommented:
Always explicitly describe every class property manually using phpdoctype and not rely on IDE to guess it.

 * @var ShopClassName
private $shop;
Richard QuadlingSenior Software DeveloperCommented:
Just a few links that assist here. Once you get to adding these doc blocks, you can then build you own documentation SO much easier. By doing it all inline, you can make sure that what you've said the code will do at least bear some resemblance to what the code actually does.
vidda22Author Commented:
Many thanks! Very usefull! I never understood to much about php documentator, now I know where to start!
Good man!!
Richard QuadlingSenior Software DeveloperCommented:
If you like pretty documentation, then there is a skin available which produced ExtJS styled documentation. Looks great!!!

There are a few issues with it (, some have patches supplied.

But overall, this is an excellent looking skin for your documentation.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.