Documentation

RemoteObjectFactory extends AbstractBaseFactory
in package

Factory responsible of producing remote proxy objects

Table of Contents

Properties

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

Methods

__construct()  : mixed
createProxy()  : RemoteObjectInterface
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(mixed $instanceOrClassName) : RemoteObjectInterface
Parameters
$instanceOrClassName : mixed
Tags
psalm-param

RealObjectType|class-string<RealObjectType> $instanceOrClassName

psalm-return

RealObjectType&RemoteObjectInterface

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
RemoteObjectInterface

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