Свойство | Тип | Описание | |
---|---|---|---|
$constants | array | ||
$constructor | |||
$fullOriginalClassName | string | Fully qualified class name of the original class | |
$interfaces | array | Note: Not using ProxyInterface::class here, since the interface names must have a leading backslash. | |
$methods | array | ||
$namespace | string | Namespace, extracted from the fully qualified original class name | |
$originalClassName | string | The original class name | |
$properties | array | ||
$reflectionService | |||
$traits | array |
Метод | Описание | |
---|---|---|
__construct ( string $fullOriginalClassName ) | Creates a new ProxyClass instance. | |
addConstant ( string $name, string $valueCode ) : void | Adds a constant to this proxy class | |
addInterfaces ( array $interfaceNames ) : void | Adds one or more interfaces to the "implements" section of the class definition. | |
addProperty ( string $name, string $initialValueCode, string $visibility = 'private', string $docComment = '' ) : void | Adds a class property to this proxy class | |
addTraits ( array $traitNames ) : void | Adds one or more traits to the class definition. | |
getConstructor ( ) : |
Returns the ProxyConstructor for this ProxyClass. Creates it if needed. | |
getMethod ( string $methodName ) : |
Returns the named ProxyMethod for this ProxyClass. Creates it if needed. | |
injectReflectionService ( |
Injects the Reflection Service | |
render ( ) : string | Renders and returns the PHP code for this ProxyClass. |
Метод | Описание | |
---|---|---|
buildClassDocumentation ( ) : string | Builds the class documentation block for the specified class keeping doc comments and vital annotations | |
renderConstantsCode ( ) : string | Renders code for the added class constants | |
renderPropertiesCode ( ) : string | Renders code for the added class properties | |
renderTraitsCode ( ) : string | Renders code for added traits |
public __construct ( string $fullOriginalClassName ) | ||
$fullOriginalClassName | string | The fully qualified class name of the original class |
public addInterfaces ( array $interfaceNames ) : void | ||
$interfaceNames | array | Fully qualified names of the interfaces to introduce |
Результат | void |
protected buildClassDocumentation ( ) : string | ||
Результат | string | $methodDocumentation DocComment for the given method |
public getConstructor ( ) : |
||
Результат |
public injectReflectionService ( |
||
$reflectionService | ||
Результат | void |
protected renderConstantsCode ( ) : string | ||
Результат | string |
protected renderPropertiesCode ( ) : string | ||
Результат | string |
protected renderTraitsCode ( ) : string | ||
Результат | string |
protected ProxyConstructor,Neos\Flow\ObjectManagement\Proxy $constructor | ||
Результат |
protected string $fullOriginalClassName | ||
Результат | string |
protected array $interfaces | ||
Результат | array |
protected string $namespace | ||
Результат | string |
protected string $originalClassName | ||
Результат | string |
protected ReflectionService,Neos\Flow\Reflection $reflectionService | ||
Результат |