| Methods |
public
|
__construct(
Parser $phpParser,
Standard $prettyPrinter,
int $phpVersion = PHP_VERSION_ID,
int|null $maxCachedNodes = null,
)
Parameters
| $maxCachedNodes |
maximum number of entries kept in each node cache, evicted by LRU; null means unlimited
|
|
#
|
public
|
hasClass(string $className): bool
|
#
|
public
|
isPresentClass(string $className): ?bool
|
#
|
public
|
isPresentFunction(string $functionName): ?bool
|
#
|
public
|
generateClassStub(class-string|trait-string $className): ?StubData
Generates stub for given class. Returns null when it cannot generate the stub.
Generates stub for given class. Returns null when it cannot generate the stub.
Implements
|
#
|
public
|
generateFunctionStub(string $functionName): ?StubData
Generates stub for given function. Returns null when it cannot generate the stub.
Generates stub for given function. Returns null when it cannot generate the stub.
Implements
|
#
|
public
|
generateConstantStub(string $constantName): ?StubData
Generates stub for given constant. Returns null when it cannot generate the stub.
Generates stub for given constant. Returns null when it cannot generate the stub.
Implements
|
#
|