Documentation

ClassNameInflector
in package
implements ClassNameInflectorInterface

FinalYes

Table of Contents

Interfaces

ClassNameInflectorInterface
Interface for a proxy- to user-class and user- to proxy-class name inflector

Properties

$parameterHasher  : mixed
$proxyMarker  : mixed
$proxyMarkerLength  : int
$proxyNamespace  : mixed

Methods

__construct()  : mixed
getProxyClassName()  : string
Retrieve the class name of the proxy for the given user-defined class name
getUserClassName()  : string
Retrieve the class name of a user-defined class
isProxyClassName()  : bool
Retrieve whether the provided class name is a proxy

Properties

$proxyMarkerLength

private int $proxyMarkerLength

@TODO annotation still needed for phpstan to understand this

Methods

__construct()

public __construct(string $proxyNamespace) : mixed
Parameters
$proxyNamespace : string

getProxyClassName()

Retrieve the class name of the proxy for the given user-defined class name

public getProxyClassName(string $className[, array<string|int, mixed> $options = [] ]) : string
Parameters
$className : string
$options : array<string|int, mixed> = []

arbitrary options to be used for the generated class name

Tags
psalm-suppress

MoreSpecificReturnType we ignore these issues because classes may not have been loaded yet

Return values
string

getUserClassName()

Retrieve the class name of a user-defined class

public getUserClassName(string $className) : string
Parameters
$className : string
Tags
psalm-suppress

MoreSpecificReturnType we ignore these issues because classes may not have been loaded yet

Return values
string

isProxyClassName()

Retrieve whether the provided class name is a proxy

public isProxyClassName(string $className) : bool
Parameters
$className : string
Return values
bool

        
On this page

Search results