![]() |
| [resolved] Code completition and factory pattern? |
|
Try using PHPDoc hints:
|
||||||||||||||
|
|
|||||||||||||||
|
...and it works
Thank you very much for the help. |
||||||||||||
|
|
|||||||||||||
|
Site Admin
|
that's correct and works the best if your method returns different instances (depending on the argument for example).
If it returns instances of only one class, it's easier to find setupObject() methd and add /** @returns myClassType1 */ before it. In this case you will not have to bother with every and each call. |
||||||||||||
|
_________________ The PHP IDE team |
|||||||||||||
|
Thnx for the info dmitri.
Is there a quick reference sheet what can you do with phpDoc and how it effects PHPEd's auto competition? |
||||||||||||
|
|
|||||||||||||
|
Site Admin
|
please check phpdoc manuals available online.
PhpED recognizes everything that may affect code completion: @var, @param and @return |
||||||||||||
|
_________________ The PHP IDE team |
|||||||||||||
| [resolved] Code completition and factory pattern? |
|
||
|
Content © NuSphere Corp., PHP IDE team
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by


RSS2 Feed