Top "Phpdoc" questions

phpDocumentor (phpdoc) is an automatic code-documentation tool for PHP, based on Javadoc.

PHPDoc type hinting for array of objects?

So, in PHPDoc one can specify @var above the member variable declaration to hint at its type. Then an IDE, …

php ide phpdoc var hint
PHP Function Comments

Just a quick question: I've seen that some PHP functions are commented at the top, using a format that is …

php function comments format phpdoc
Best way to document Array options in PHPDoc?

I'm struggling to write readable and easy to understand documentation that describes the multi-tree structure for Array options that are …

php cakephp phpdoc
Variable type hinting in Netbeans (PHP)

Just curious if there's a way in netbeans to give type hints for regular variables, so that intellisense picks it …

php phpdoc php-ide
PHPDoc: @return void necessary?

Is it really necessary do something like this: /** * ... * * @return void */ I have quite a few methods that don't have a …

php return-value phpdoc
What is the correct way to write PHPDocs for constants?

I have this code: /** * Days to parse * @var int */ const DAYS_TO_PARSE = 10; ... I don't think that using @var is …

php phpdoc
Sublime Text 2 Comment/Doc Block

Recently, I decided to try out Sublime Text 2 as a TextMate alternative (which it is). I'm absolutely loving it but …

phpdoc sublimetext
Comment associative array in PHP Documentor

I use several associative arrays in my PHP application and I'm using PHP documentor to comment my sources. I never …

php arrays associative-array phpdoc
How to document class properties in PHP 5 with phpDocumentor

Take in consideration the following PHP 5 class: class SomeClass { //I want to document this property... private $foo; function __construct() { } public …

php class phpdoc
PHPDoc optional parameter

There are already 2 similar questions of this type here on SO but none of the answers seem to work. PHPDoc …

php phpdoc param optional