Top "Phpdoc" questions

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

Why do PHP magical methods have to be public?

I use magical methods in my PHP classes but when i try to put them private, I'm warned : WARN: The …

php getter-setter phpdoc public-method
PHPdoc - defining object properties for an object of stdClass

I am trying to figure out if it is possible to use PHPdoc to define the object properties being returned …

php phpdoc code-documentation
How should I document JSON parameters and return types in phpDocumentor 2?

I have a PHP REST API written with CakePHP as part of a project. All of the API endpoints exist …

json phpdoc
PHPDoc Comments in Notepad++?

I very much enjoy working in Notepad++, but I haven't yet found a plugin to automatically do PHPDoc style comments. …

php comments notepad++ phpdoc
PHPStorm: correct PHPDoc for a Collection of Objects?

I'm using the PHPStorm IDE, and run into trouble when I run the code inspection. I have a method which …

php phpdoc phpstorm
What is the correct way to display a multi-line @param using PHPDoc?

From what I've done research on, I can't seem to find a correct method to format a multiline phpdoc @param …

php documentation phpdoc
VIM Insert PHPdoc automatically

Is there a way to insert PHPDoc in VIM using a command or key combination? For example, I have a …

vim phpdoc
What is the correct way to document PHP constants (define) with phpDocumentor

How must we document (with phpDocumentor) constants defined with define() in PHP? I found nothing in the docs, but found …

php constants phpdoc
PhpDoc for interface and class implementing interface - difference

The question is quite simple - how should I differ phpdoc for interface and for class implementing interface? Should/Can …

php class interface documentation phpdoc
Docblocks for Doctrine collections

Is there a standard way to document the expected class of entities inside a Collection in the docblock comment in …

php doctrine doctrine-orm phpdoc docblocks