PHP 클래스 Neos\Flow\ObjectManagement\Proxy\ProxyMethod

파일 보기 프로젝트 열기: neos/flow-development-collection

공개 프로퍼티들

프로퍼티 타입 설명
$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 Neos\Flow\Reflection\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 ( ReflectionService $reflectionService ) : void 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.

메소드 상세

__construct() 공개 메소드

Constructor
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

addPostParentCallCode() 공개 메소드

Adds PHP code to the body of this method which will be executed after a possible parent call.
public addPostParentCallCode ( string $code ) : void
$code string
리턴 void

addPreParentCallCode() 공개 메소드

Adds PHP code to the body of this method which will be executed before a possible parent call.
public addPreParentCallCode ( string $code ) : void
$code string
리턴 void

buildArraySetupCode() 보호된 메소드

Builds a string containing PHP code to build the array given as input.
protected buildArraySetupCode ( array $array ) : string
$array array
리턴 string e.g. 'array()' or 'array(1 => 'bar')

buildCallParentMethodCode() 보호된 메소드

Builds PHP code which calls the original (ie. parent) method after the added code has been executed.
protected buildCallParentMethodCode ( string $fullClassName, string $methodName ) : string
$fullClassName string Fully qualified name of the original class
$methodName string Name of the original method
리턴 string PHP code

buildMethodDocumentation() 보호된 메소드

Builds the method documentation block for the specified method keeping the vital annotations
protected buildMethodDocumentation ( string $className, string $methodName ) : string
$className string Name of the class the method is declared in
$methodName string Name of the method to create the parameters code for
리턴 string $methodDocumentation DocComment for the given method

buildMethodParametersCode() 공개 메소드

Builds the PHP code for the parameters of the specified method to be used in a method interceptor in the proxy class
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

getMethodVisibilityString() 보호된 메소드

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.
protected getMethodVisibilityString ( ) : string
리턴 string One of 'public', 'protected' or 'private'

injectReflectionService() 공개 메소드

Injects the Reflection Service
public injectReflectionService ( ReflectionService $reflectionService ) : void
$reflectionService Neos\Flow\Reflection\ReflectionService
리턴 void

overrideMethodVisibility() 공개 메소드

Overrides the method's visibility
public overrideMethodVisibility ( string $visibility ) : void
$visibility string One of 'public', 'protected', 'private'
리턴 void

render() 공개 메소드

Renders the PHP code for this Proxy Method
public render ( ) : string
리턴 string PHP code

setMethodBody() 공개 메소드

Override the method body
public setMethodBody ( string $methodBody ) : void
$methodBody string
리턴 void

setMethodParametersCode() 공개 메소드

Sets the (exact) code which use used in as the parameters signature for this method.
public setMethodParametersCode ( string $code ) : void
$code string Parameters code, for example: '$foo, array $bar, \Foo\Bar\Baz $baz'
리턴 void

willBeRendered() 공개 메소드

Tells if enough code was provided (yet) so that this method would actually be rendered if render() is called.
public willBeRendered ( ) : boolean
리턴 boolean TRUE if there is any code to render, otherwise FALSE

프로퍼티 상세

$addedPostParentCallCode 보호되어 있는 프로퍼티

protected string $addedPostParentCallCode
리턴 string

$addedPreParentCallCode 보호되어 있는 프로퍼티

protected string $addedPreParentCallCode
리턴 string

$fullOriginalClassName 보호되어 있는 프로퍼티

Fully qualified class name of the original class
protected string $fullOriginalClassName
리턴 string

$methodBody 공개적으로 프로퍼티

public string $methodBody
리턴 string

$methodName 보호되어 있는 프로퍼티

Name of the original method
protected string $methodName
리턴 string

$methodParametersCode 보호되어 있는 프로퍼티

protected string $methodParametersCode
리턴 string

$reflectionService 보호되어 있는 프로퍼티

protected ReflectionService,Neos\Flow\Reflection $reflectionService
리턴 Neos\Flow\Reflection\ReflectionService

$visibility 보호되어 있는 프로퍼티

Visibility of the method
protected string $visibility
리턴 string