PHPDoc Cheat Sheet

I always forget the format and allowed keywords. This is just an unsorted list.

Example

/**
 * @param Type $variable This argument does something
 * @return Type Something meaningful is returned
 */
				

Types

int (Any number type)
string
boolean
array
SomeObject
\SomeNamespace\SomeObject