LazyLoadingGhostGenerator
in package
implements
ProxyGeneratorInterface
Generator for proxies implementing {@see \ProxyManager\Proxy\GhostObjectInterface}
Table of Contents
Interfaces
- ProxyGeneratorInterface
- Base interface for proxy generators - describes how a proxy generator should use reflection classes to modify given class generators
Methods
- generate() : void
- Apply modifications to the provided $classGenerator to proxy logic from $originalClass
- getAbstractProxiedMethods() : array<string|int, MethodGenerator>
- Retrieves all abstract methods to be proxied
Methods
generate()
Apply modifications to the provided $classGenerator to proxy logic from $originalClass
public
generate(ReflectionClass $originalClass, ClassGenerator $classGenerator[, array<string|int, mixed> $proxyOptions = [] ]) : void
Parameters
- $originalClass : ReflectionClass
- $classGenerator : ClassGenerator
- $proxyOptions : array<string|int, mixed> = []
Tags
getAbstractProxiedMethods()
Retrieves all abstract methods to be proxied
private
getAbstractProxiedMethods(ReflectionClass $originalClass, bool $skipDestructor) : array<string|int, MethodGenerator>
Parameters
- $originalClass : ReflectionClass
- $skipDestructor : bool