ParserFile
Less than 1 minute
ParserFile
Properties
source
private string $sourcesize
private int $sizeconstants
private array $constantsfunctions
private array $functionsinterfaces
private array $interfacesclasses
private array $classestraits
private array $traitsMethods
__construct
public __construct(string $filename): voidParameters
| Parameter | Type | Description |
|---|---|---|
$filename | string |
getSource
Returns the source file path.
public getSource(): stringgetSize
Returns the size of the file in bytes.
public getSize(): intgetConstants
Returns an array of constants defined in the file.
public getConstants(): voidgetFunctions
Returns an array of functions defined in the file.
public getFunctions(): voidgetInterfaces
Returns an array of interfaces defined in the file.
public getInterfaces(): voidgetClasses
Returns an array of classes defined in the file.
public getClasses(): voidgetTraits
Returns an array of traits defined in the file.
public getTraits(): voidgetDocBlock
public getDocBlock(): ?DocBlockfixTokenArray
private fixTokenArray(array $tokens): voidParameters
| Parameter | Type | Description |
|---|---|---|
$tokens | array |
Generated by Hazaar API Doc Generator on Mon, 27 Oct 2025 13:01:29 +0000