PHP Класс Go\Proxy\AbstractProxy

Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$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