Skip to content

Commit

Permalink
Allow class string type in PHPDoc (#123)
Browse files Browse the repository at this point in the history
* Allow class string type in PHPDoc

* Indicate proper usage
  • Loading branch information
cconard96 committed Apr 22, 2022
1 parent bc274bd commit 11a2af1
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions source/codingstandards.rst
Original file line number Diff line number Diff line change
Expand Up @@ -174,18 +174,19 @@ Variables types

Variables types for use in DocBlocks for Doxygen:

========= ===========
Type Description
========= ===========
mixed A variable with undefined (or multiple) type
integer Integer type variable (whole number)
float Float type (point number)
boolean Logical type (true or false)
string String type (any value in ``""`` or ``' '``)
array Array type
object Object type
ressource Resource type (as returned from ``mysql_connect`` function)
========= ===========
=============== ===========
Type Description
=============== ===========
mixed A variable with undefined (or multiple) type
integer Integer type variable (whole number)
float Float type (point number)
boolean Logical type (true or false)
string String type (any value in ``""`` or ``' '``)
array Array type
object Object type
resource Resource type (as returned from ``mysql_connect`` function)
class-string<T> A string that represents a class name where T is the class (or a common parent class)
=============== ===========

Inserting comment in source code for doxygen.
Result : full doc for variables, functions, classes...
Expand Down

0 comments on commit 11a2af1

Please sign in to comment.