PHP 클래스 Go\Proxy\AbstractProxy

파일 보기 프로젝트 열기: goaop/framework 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$advices array List of advices that are used for generation of child
$indent integer Indent for source code
$staticLsbExpression string PHP expression string for accessing LSB information

공개 메소드들

메소드 설명
__construct ( array $advices = [] ) Constructs an abstract proxy class
__toString ( ) : string Returns text representation of class

보호된 메소드들

메소드 설명
getOverriddenFunction ( ReflectionFunctionAbstrac\ReflectionFunctionAbstract $functionLike, string $body ) : string Creates a function code from Reflection
getParameterCode ( ReflectionParameter $parameter ) : string Return string representation of parameter
getParameters ( array $parameters ) : array Returns list of string representation of parameters
indent ( string $text ) : string Indent block of code
prepareArgsLine ( ReflectionFunctionAbstrac\ReflectionFunctionAbstract $functionLike ) : string Prepares a line with args from the method definition

비공개 메소드들

메소드 설명
flattenAdvices ( $advices ) : array Replace concrete advices with list of ids

메소드 상세

__construct() 공개 메소드

Constructs an abstract proxy class
public __construct ( array $advices = [] )
$advices array List of advices

__toString() 추상적인 공개 메소드

Returns text representation of class
abstract public __toString ( ) : string
리턴 string

getOverriddenFunction() 보호된 메소드

Creates a function code from Reflection
protected getOverriddenFunction ( ReflectionFunctionAbstrac\ReflectionFunctionAbstract $functionLike, string $body ) : string
$functionLike ReflectionFunctionAbstrac\ReflectionFunctionAbstract Reflection for method
$body string Body of method
리턴 string

getParameterCode() 보호된 메소드

Return string representation of parameter
protected getParameterCode ( ReflectionParameter $parameter ) : string
$parameter ReflectionParameter Reflection parameter
리턴 string

getParameters() 보호된 메소드

Returns list of string representation of parameters
protected getParameters ( array $parameters ) : array
$parameters array List of parameters
리턴 array

indent() 보호된 메소드

Indent block of code
protected indent ( string $text ) : string
$text string Non-indented text
리턴 string Indented text

prepareArgsLine() 보호된 메소드

Prepares a line with args from the method definition
protected prepareArgsLine ( ReflectionFunctionAbstrac\ReflectionFunctionAbstract $functionLike ) : string
$functionLike ReflectionFunctionAbstrac\ReflectionFunctionAbstract
리턴 string

프로퍼티 상세

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

List of advices that are used for generation of child
protected array $advices
리턴 array

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

Indent for source code
protected int $indent
리턴 integer

$staticLsbExpression 보호되어 있는 정적으로 프로퍼티

PHP expression string for accessing LSB information
protected static string $staticLsbExpression
리턴 string