Documentation

LazyLoadingValueHolderFactory extends AbstractBaseFactory
in package

Factory responsible of producing virtual proxy instances

Table of Contents

Properties

$configuration  : mixed
$checkedClasses  : array<string, string>
Cached checked class names
$generator  : mixed

Methods

__construct()  : mixed
createProxy()  : VirtualProxyInterface
generateProxy()  : string
Generate a proxy from a class name
getGenerator()  : ProxyGeneratorInterface
generateProxyClass()  : void
Generates the provided `$proxyClassName` from the given `$className` and `$proxyParameters`

Properties

$checkedClasses

Cached checked class names

private array<string, string> $checkedClasses = []
Tags
psalm-var

array<string, class-string>

Methods

createProxy()

public createProxy(string $className, Closure $initializer[, array<string, mixed> $proxyOptions = [] ]) : VirtualProxyInterface
Parameters
$className : string
$initializer : Closure
$proxyOptions : array<string, mixed> = []
Tags
psalm-param

class-string<RealObjectType> $className

psalm-param

Closure( RealObjectType|null=, RealObjectType&ValueHolderInterface<RealObjectType>&VirtualProxyInterface=, string=, array<string, mixed>=, ?Closure= ) : bool $initializer

psalm-param

array{skipDestructor?: bool, fluentSafe?: bool} $proxyOptions

psalm-return

RealObjectType&ValueHolderInterface<RealObjectType>&VirtualProxyInterface

psalm-template

RealObjectType of object

psalm-suppress

MixedInferredReturnType We ignore type checks here, since staticProxyConstructor is not interfaced (by design)

Return values
VirtualProxyInterface

generateProxy()

Generate a proxy from a class name

protected generateProxy(string $className[, array<string, mixed> $proxyOptions = [] ]) : string
Parameters
$className : string
$proxyOptions : array<string, mixed> = []
Tags
psalm-param

class-string<RealObjectType> $className

psalm-return

class-string<RealObjectType>

throws
InvalidSignatureException
throws
MissingSignatureException
throws
OutOfBoundsException
psalm-template

RealObjectType of object

Return values
string

generateProxyClass()

Generates the provided `$proxyClassName` from the given `$className` and `$proxyParameters`

private generateProxyClass(string $proxyClassName, string $className, array<string, mixed> $proxyParameters[, array<string, mixed> $proxyOptions = [] ]) : void
Parameters
$proxyClassName : string
$className : string
$proxyParameters : array<string, mixed>
$proxyOptions : array<string, mixed> = []
Tags
psalm-param

class-string $proxyClassName

psalm-param

class-string $className


        
On this page

Search results