| title | generator |
|---|---|
axelhahn\phpclassparser |
Axels php-classdoc; https://github.com/axelhahn/php-classdoc |
PHP CLASS PARSER
@author axelhahn
@license GNU GPL 3.0
@source <https://github.com/axelhahn/php-classdoc>
2024-07-15 v0.1 axelhahn initial version
2026-03-01 v0._ axelhahn last changes
(none)
Constructs a new instance of the class.
Line 39 (5 lines)
Return: void
Parameters: 1 (required: 0)
| Parameter | Type | Description |
|---|---|---|
| <optional> $sClassname | string |
optional: The name of the class. Default is an empty string. |
Sets the class file to be analyzed. It will detect namespace and class name to initialize the class.
Line 52 (74 lines)
Return: string|bool
Parameters: 1 (required: 1)
| Parameter | Type | Description |
|---|---|---|
| <required> $file | string |
The path to the class file. |
Set a classname. You can use that method directly if the class file was loaded before. Or use setClassFile() to load the class file and detect the classname. @see setClassFile()
Line 135 (10 lines)
Return: void
Parameters: 1 (required: 1)
| Parameter | Type | Description |
|---|---|---|
| <required> $sClassname | string |
classname to access for doc generation |
Line 146 (4 lines)
Return: void
Parameters: 1 (required: 1)
| Parameter | Type | Description |
|---|---|---|
| <required> $sSourceUrl | string |
Get metainformation for the class
Line 155 (15 lines)
Return: array
Parameters: 0 (required: 0)
Get a list of all methods of a class
Line 176 (15 lines)
Return: array
Parameters: 1 (required: 0)
| Parameter | Type | Description |
|---|---|---|
| <optional> $bPublicOnly | * |
Get a hash of methods with its type, parameters, phpdoc infos
Line 197 (105 lines)
Return: array
Parameters: 1 (required: 1)
| Parameter | Type | Description |
|---|---|---|
| <required> $sMethodname | string |
mame of the method |
Get a hash of properties with its type, phpdoc infos, default value, attributes, etc.
Line 310 (66 lines)
Return: array
Parameters: 1 (required: 0)
| Parameter | Type | Description |
|---|---|---|
| <optional> $bPublicOnly | flag: * |
flag: public only properties or all; default: true (=only public properties) |
Generated with Axels PHP class doc parser