Skip to content

Latest commit

History

History
141 lines (82 loc) 路 3.46 KB

File metadata and controls

141 lines (82 loc) 路 3.46 KB
title axelhahn\phpclassparser
generator Axels php-classdoc; https://github.com/axelhahn/php-classdoc

馃摝 Class axelhahn\phpclassparser

 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

馃敹 Properties

(none)

馃敺 Methods

馃敼 public __construct()

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.

馃敼 public setClassFile()

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.

馃敼 public setClassname()

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

馃敼 public setSourceUrl()

Line 146 (4 lines)

Return: void

Parameters: 1 (required: 1)

Parameter Type Description
<required> $sSourceUrl string

馃敼 public getClassInfos()

Get metainformation for the class

Line 155 (15 lines)

Return: array

Parameters: 0 (required: 0)

馃敼 public getMethods()

Get a list of all methods of a class

Line 176 (15 lines)

Return: array

Parameters: 1 (required: 0)

Parameter Type Description
<optional> $bPublicOnly *

馃敼 public getMethod()

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

馃敼 public getProperties()

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