Свойство | Тип | Описание | |
---|---|---|---|
$methodBody | string |
Свойство | Тип | Описание | |
---|---|---|---|
$addedPostParentCallCode | string | ||
$addedPreParentCallCode | string | ||
$fullOriginalClassName | string | Fully qualified class name of the original class | |
$methodName | string | Name of the original method | |
$methodParametersCode | string | ||
$reflectionService | |||
$visibility | string | Visibility of the method |
Метод | Описание | |
---|---|---|
__construct ( string $fullOriginalClassName, string $methodName ) | Constructor | |
addPostParentCallCode ( string $code ) : void | Adds PHP code to the body of this method which will be executed after a possible parent call. | |
addPreParentCallCode ( string $code ) : void | Adds PHP code to the body of this method which will be executed before a possible parent call. | |
buildMethodParametersCode ( string $fullClassName, string $methodName, boolean $addTypeAndDefaultValue = true ) : string | Builds the PHP code for the parameters of the specified method to be used in a method interceptor in the proxy class | |
injectReflectionService ( |
Injects the Reflection Service | |
overrideMethodVisibility ( string $visibility ) : void | Overrides the method's visibility | |
render ( ) : string | Renders the PHP code for this Proxy Method | |
setMethodBody ( string $methodBody ) : void | Override the method body | |
setMethodParametersCode ( string $code ) : void | Sets the (exact) code which use used in as the parameters signature for this method. | |
willBeRendered ( ) : boolean | Tells if enough code was provided (yet) so that this method would actually be rendered if render() is called. |
Метод | Описание | |
---|---|---|
buildArraySetupCode ( array $array ) : string | Builds a string containing PHP code to build the array given as input. | |
buildCallParentMethodCode ( string $fullClassName, string $methodName ) : string | Builds PHP code which calls the original (ie. parent) method after the added code has been executed. | |
buildMethodDocumentation ( string $className, string $methodName ) : string | Builds the method documentation block for the specified method keeping the vital annotations | |
getMethodVisibilityString ( ) : string | Returns the method's visibility string found by the reflection service Note: If the reflection service has no information about this method, 'public' is returned. |
public __construct ( string $fullOriginalClassName, string $methodName ) | ||
$fullOriginalClassName | string | The fully qualified class name of the original class |
$methodName | string | Name of the proxy (and original) method |
public addPostParentCallCode ( string $code ) : void | ||
$code | string | |
Результат | void |
public addPreParentCallCode ( string $code ) : void | ||
$code | string | |
Результат | void |
protected buildArraySetupCode ( array $array ) : string | ||
$array | array | |
Результат | string | e.g. 'array()' or 'array(1 => 'bar') |
public buildMethodParametersCode ( string $fullClassName, string $methodName, boolean $addTypeAndDefaultValue = true ) : string | ||
$fullClassName | string | Name of the class the method is declared in |
$methodName | string | Name of the method to create the parameters code for |
$addTypeAndDefaultValue | boolean | If the type and default value for each parameters should be rendered |
Результат | string | A comma speparated list of parameters |
protected getMethodVisibilityString ( ) : string | ||
Результат | string | One of 'public', 'protected' or 'private' |
public injectReflectionService ( |
||
$reflectionService | ||
Результат | void |
public overrideMethodVisibility ( string $visibility ) : void | ||
$visibility | string | One of 'public', 'protected', 'private' |
Результат | void |
public setMethodBody ( string $methodBody ) : void | ||
$methodBody | string | |
Результат | void |
public setMethodParametersCode ( string $code ) : void | ||
$code | string | Parameters code, for example: '$foo, array $bar, \Foo\Bar\Baz $baz' |
Результат | void |
public willBeRendered ( ) : boolean | ||
Результат | boolean | TRUE if there is any code to render, otherwise FALSE |
protected string $addedPostParentCallCode | ||
Результат | string |
protected string $addedPreParentCallCode | ||
Результат | string |
protected string $fullOriginalClassName | ||
Результат | string |
protected string $methodName | ||
Результат | string |
protected ReflectionService,Neos\Flow\Reflection $reflectionService | ||
Результат |
protected string $visibility | ||
Результат | string |