Skip to content

Latest commit

 

History

History
136 lines (94 loc) · 2.26 KB

Module.md

File metadata and controls

136 lines (94 loc) · 2.26 KB

Module

  • class Module (php\lang\Module)
  • package std
  • source php/lang/Module.php

Description

Class Module


Static Methods


Methods


Static Methods

package()

Module::package(string $name, array $classes): void

Methods

__construct()

__construct(File|Stream|string $source, bool $compiled, bool $debugInformation): void

Register all functions and classes of module in current environment


getName()

getName(): string

call()

call(array $variables): mixed

Include module and return result


dumpJVMClasses()

dumpJVMClasses(string $targetDir, bool $saveDebugInfo): array

Dump all the jvm classes of the module as .class files into targetDir


dump()

dump(File|Stream|string $target, bool $saveDebugInfo, bool $includeJvmData): void

getData()

getData(): string

Java Bytecode data (.class file)


cleanData()

cleanData(): void

Remove bytecode data.


getClasses()

getClasses(): \ReflectionClass[]

getFunctions()

getFunctions(): \ReflectionFunction[]

getConstants()

getConstants(): array