ParserFile
Less than 1 minute
ParserFile
Properties
source
private string $source
size
private int $size
constants
private array $constants
functions
private array $functions
interfaces
private array $interfaces
classes
private array $classes
traits
private array $traits
Methods
__construct
public __construct(string $filename): void
Parameters
Parameter | Type | Description |
---|---|---|
$filename | string |
getSource
Returns the source file path.
public getSource(): string
getSize
Returns the size of the file in bytes.
public getSize(): int
getConstants
Returns an array of constants defined in the file.
public getConstants(): void
getFunctions
Returns an array of functions defined in the file.
public getFunctions(): void
getInterfaces
Returns an array of interfaces defined in the file.
public getInterfaces(): void
getClasses
Returns an array of classes defined in the file.
public getClasses(): void
getTraits
Returns an array of traits defined in the file.
public getTraits(): void
getDocBlock
public getDocBlock(): ?DocBlock
fixTokenArray
private fixTokenArray(array $tokens): void
Parameters
Parameter | Type | Description |
---|---|---|
$tokens | array |
Generated by Hazaar API Doc Generator