|
| 1 | +## Class axelhahn\phpclassparser |
| 2 | + |
| 3 | + |
| 4 | +PHP CLASS PARSER |
| 5 | +@author axelhahn |
| 6 | +@license GNU GPL 3.0 |
| 7 | + |
| 8 | +@source <https://github.com/axelhahn/TODO> |
| 9 | + |
| 10 | + |
| 11 | + |
| 12 | +## Properties |
| 13 | + |
| 14 | +(none) |
| 15 | + |
| 16 | +## Methods |
| 17 | + |
| 18 | +### public __construct |
| 19 | + |
| 20 | + |
| 21 | +Constructs a new instance of the class. |
| 22 | + |
| 23 | + |
| 24 | + |
| 25 | +**Parameters**: **1** (required: 0) |
| 26 | + |
| 27 | +| Parameter | Type | Description |
| 28 | +|-- |-- |-- |
| 29 | +\<optional\> string $sClassname = '' | string | optional: The name of the class. Default is an empty string. |
| 30 | + |
| 31 | + |
| 32 | + |
| 33 | +**Return**: |
| 34 | + |
| 35 | +### public getClassInfos |
| 36 | + |
| 37 | + |
| 38 | + |
| 39 | +**Parameters**: **0** (required: 0) |
| 40 | + |
| 41 | + |
| 42 | + |
| 43 | +**Return**: array |
| 44 | + |
| 45 | +### public getMethods |
| 46 | + |
| 47 | + |
| 48 | +Get a hash of methods with its type, parameters, phpdoc infos |
| 49 | + |
| 50 | + |
| 51 | +**Parameters**: **1** (required: 0) |
| 52 | + |
| 53 | +| Parameter | Type | Description |
| 54 | +|-- |-- |-- |
| 55 | +\<optional\> $bPublicOnly = true | string * | flag: public only methods or all; default: true (=only public methods) |
| 56 | + |
| 57 | + |
| 58 | + |
| 59 | +**Return**: array |
| 60 | + |
| 61 | +### public getProperties |
| 62 | + |
| 63 | + |
| 64 | +Get a hash of properties with its type, phpdoc infos, default value, attributes, etc. |
| 65 | + |
| 66 | + |
| 67 | + |
| 68 | +**Parameters**: **1** (required: 0) |
| 69 | + |
| 70 | +| Parameter | Type | Description |
| 71 | +|-- |-- |-- |
| 72 | +\<optional\> $bPublicOnly = true | bool * | flag: public only properties or all; default: true (=only public properties) |
| 73 | + |
| 74 | + |
| 75 | + |
| 76 | +**Return**: array |
| 77 | + |
| 78 | +### public setClassFile |
| 79 | + |
| 80 | + |
| 81 | +Sets the class file to be analyzed. |
| 82 | +It will detect namespace and class name to initialize the class. |
| 83 | + |
| 84 | + |
| 85 | + |
| 86 | +**Parameters**: **1** (required: 1) |
| 87 | + |
| 88 | +| Parameter | Type | Description |
| 89 | +|-- |-- |-- |
| 90 | +\<required\> string $file | string | The path to the class file. |
| 91 | + |
| 92 | + |
| 93 | + |
| 94 | +**Return**: string|bool |
| 95 | + |
| 96 | +### public setClassname |
| 97 | + |
| 98 | + |
| 99 | +Set a classname. |
| 100 | +You can use that method directly if the class file was loaded before. |
| 101 | +Or use setClassFile() to load the class file and detect the classname. |
| 102 | +@see setClassFile() |
| 103 | + |
| 104 | + |
| 105 | +**Parameters**: **1** (required: 1) |
| 106 | + |
| 107 | +| Parameter | Type | Description |
| 108 | +|-- |-- |-- |
| 109 | +\<required\> string $sClassname | string | classname to access for doc generation |
| 110 | + |
| 111 | + |
| 112 | + |
| 113 | +**Return**: void |
| 114 | + |
| 115 | + |
| 116 | + |
| 117 | +--- |
| 118 | +Generated with Axels PHP class doc parser. |
0 commit comments