PHP Class Go\Proxy\AbstractProxy

Afficher le fichier Open project: goaop/framework Class Usage Examples

Protected Properties

Свойство Type Description
$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

Méthodes publiques

Méthode Description
__construct ( array $advices = [] ) Constructs an abstract proxy class
__toString ( ) : string Returns text representation of class

Méthodes protégées

Méthode Description
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

Private Methods

Méthode Description
flattenAdvices ( $advices ) : array Replace concrete advices with list of ids

Method Details

__construct() public méthode

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

__toString() abstract public méthode

Returns text representation of class
abstract public __toString ( ) : string
Résultat string

getOverriddenFunction() protected méthode

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
Résultat string

getParameterCode() protected méthode

Return string representation of parameter
protected getParameterCode ( ReflectionParameter $parameter ) : string
$parameter ReflectionParameter Reflection parameter
Résultat string

getParameters() protected méthode

Returns list of string representation of parameters
protected getParameters ( array $parameters ) : array
$parameters array List of parameters
Résultat array

indent() protected méthode

Indent block of code
protected indent ( string $text ) : string
$text string Non-indented text
Résultat string Indented text

prepareArgsLine() protected méthode

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

Property Details

$advices protected_oe property

List of advices that are used for generation of child
protected array $advices
Résultat array

$indent protected_oe property

Indent for source code
protected int $indent
Résultat integer

$staticLsbExpression protected_oe static_oe property

PHP expression string for accessing LSB information
protected static string $staticLsbExpression
Résultat string