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

파일 보기 프로젝트 열기: neos/flow-development-collection 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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