Documentation

AccessInterceptorScopeLocalizerFactory extends AbstractBaseFactory
in package

Factory responsible of producing proxy objects

Table of Contents

Properties

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

Methods

__construct()  : mixed
createProxy()  : AccessInterceptorInterface
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(object $instance[, array<string, Closure$prefixInterceptors = [] ][, array<string, Closure$suffixInterceptors = [] ]) : AccessInterceptorInterface
Parameters
$instance : object

the object to be localized within the access interceptor

$prefixInterceptors : array<string, Closure> = []

an array (indexed by method name) of interceptor closures to be called before method logic is executed

$suffixInterceptors : array<string, Closure> = []

an array (indexed by method name) of interceptor closures to be called after method logic is executed

Tags
psalm-param

RealObjectType $instance

psalm-param

array<string, Closure( RealObjectType&AccessInterceptorInterface<RealObjectType>=, RealObjectType=, string=, array<string, mixed>=, bool= ) : mixed> $prefixInterceptors

psalm-param

array<string, Closure( RealObjectType&AccessInterceptorInterface<RealObjectType>=, RealObjectType=, string=, array<string, mixed>=, mixed=, bool= ) : mixed> $suffixInterceptors

psalm-return

RealObjectType&AccessInterceptorInterface<RealObjectType>

throws
InvalidSignatureException
throws
MissingSignatureException
throws
OutOfBoundsException
psalm-template

RealObjectType of object

psalm-suppress

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

Return values
AccessInterceptorInterface

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