PHP Класс Neos\Flow\ObjectManagement\Proxy\ProxyClass

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

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

Свойство Тип Описание
$constants array
$constructor ProxyConstructor
$fullOriginalClassName string Fully qualified class name of the original class
$interfaces array Note: Not using ProxyInterface::class here, since the interface names must have a leading backslash.
$methods array
$namespace string Namespace, extracted from the fully qualified original class name
$originalClassName string The original class name
$properties array
$reflectionService Neos\Flow\Reflection\ReflectionService
$traits array

Открытые методы

Метод Описание
__construct ( string $fullOriginalClassName ) Creates a new ProxyClass instance.
addConstant ( string $name, string $valueCode ) : void Adds a constant to this proxy class
addInterfaces ( array $interfaceNames ) : void Adds one or more interfaces to the "implements" section of the class definition.
addProperty ( string $name, string $initialValueCode, string $visibility = 'private', string $docComment = '' ) : void Adds a class property to this proxy class
addTraits ( array $traitNames ) : void Adds one or more traits to the class definition.
getConstructor ( ) : ProxyConstructor Returns the ProxyConstructor for this ProxyClass. Creates it if needed.
getMethod ( string $methodName ) : ProxyMethod Returns the named ProxyMethod for this ProxyClass. Creates it if needed.
injectReflectionService ( ReflectionService $reflectionService ) : void Injects the Reflection Service
render ( ) : string Renders and returns the PHP code for this ProxyClass.

Защищенные методы

Метод Описание
buildClassDocumentation ( ) : string Builds the class documentation block for the specified class keeping doc comments and vital annotations
renderConstantsCode ( ) : string Renders code for the added class constants
renderPropertiesCode ( ) : string Renders code for the added class properties
renderTraitsCode ( ) : string Renders code for added traits

Описание методов

__construct() публичный Метод

Creates a new ProxyClass instance.
public __construct ( string $fullOriginalClassName )
$fullOriginalClassName string The fully qualified class name of the original class

addConstant() публичный Метод

Adds a constant to this proxy class
public addConstant ( string $name, string $valueCode ) : void
$name string Name of the constant. Should be ALL_UPPERCASE_WITH_UNDERSCORES
$valueCode string PHP code which assigns the value. Example: 'foo' (including quotes!)
Результат void

addInterfaces() публичный Метод

Note that the passed interface names must already have a leading backslash, for example "\Neos\Flow\Foo\BarInterface".
public addInterfaces ( array $interfaceNames ) : void
$interfaceNames array Fully qualified names of the interfaces to introduce
Результат void

addProperty() публичный Метод

Adds a class property to this proxy class
public addProperty ( string $name, string $initialValueCode, string $visibility = 'private', string $docComment = '' ) : void
$name string Name of the property
$initialValueCode string PHP code of the initial value assignment
$visibility string
$docComment string
Результат void

addTraits() публичный Метод

Note that the passed trait names must have a leading backslash, for example "\Neos\Flow\ObjectManagement\Proxy\PropertyInjectionTrait".
public addTraits ( array $traitNames ) : void
$traitNames array
Результат void

buildClassDocumentation() защищенный Метод

Builds the class documentation block for the specified class keeping doc comments and vital annotations
protected buildClassDocumentation ( ) : string
Результат string $methodDocumentation DocComment for the given method

getConstructor() публичный Метод

Returns the ProxyConstructor for this ProxyClass. Creates it if needed.
public getConstructor ( ) : ProxyConstructor
Результат ProxyConstructor

getMethod() публичный Метод

Returns the named ProxyMethod for this ProxyClass. Creates it if needed.
public getMethod ( string $methodName ) : ProxyMethod
$methodName string The name of the methods to return
Результат ProxyMethod

injectReflectionService() публичный Метод

Injects the Reflection Service
public injectReflectionService ( ReflectionService $reflectionService ) : void
$reflectionService Neos\Flow\Reflection\ReflectionService
Результат void

render() публичный Метод

Renders and returns the PHP code for this ProxyClass.
public render ( ) : string
Результат string

renderConstantsCode() защищенный Метод

Renders code for the added class constants
protected renderConstantsCode ( ) : string
Результат string

renderPropertiesCode() защищенный Метод

Renders code for the added class properties
protected renderPropertiesCode ( ) : string
Результат string

renderTraitsCode() защищенный Метод

Renders code for added traits
protected renderTraitsCode ( ) : string
Результат string

Описание свойств

$constants защищенное свойство

protected array $constants
Результат array

$constructor защищенное свойство

protected ProxyConstructor,Neos\Flow\ObjectManagement\Proxy $constructor
Результат ProxyConstructor

$fullOriginalClassName защищенное свойство

Fully qualified class name of the original class
protected string $fullOriginalClassName
Результат string

$interfaces защищенное свойство

Note: Not using ProxyInterface::class here, since the interface names must have a leading backslash.
protected array $interfaces
Результат array

$methods защищенное свойство

protected array $methods
Результат array

$namespace защищенное свойство

Namespace, extracted from the fully qualified original class name
protected string $namespace
Результат string

$originalClassName защищенное свойство

The original class name
protected string $originalClassName
Результат string

$properties защищенное свойство

protected array $properties
Результат array

$reflectionService защищенное свойство

protected ReflectionService,Neos\Flow\Reflection $reflectionService
Результат Neos\Flow\Reflection\ReflectionService

$traits защищенное свойство

protected array $traits
Результат array