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
$parameterHasher
private
mixed
$parameterHasher
$proxyMarker
private
mixed
$proxyMarker
$proxyMarkerLength
private
int
$proxyMarkerLength
@TODO annotation still needed for phpstan to understand this
$proxyNamespace
private
mixed
$proxyNamespace
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
Return values
stringgetUserClassName()
Retrieve the class name of a user-defined class
public
getUserClassName(string $className) : string
Parameters
- $className : string
Tags
Return values
stringisProxyClassName()
Retrieve whether the provided class name is a proxy
public
isProxyClassName(string $className) : bool
Parameters
- $className : string