PHP Класс Neos\Flow\Reflection\ClassReflection

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

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

Свойство Тип Описание
$docCommentParser Holds an instance of the doc comment parser for this class

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

Метод Описание
__construct ( mixed $classNameOrObject )
getConstructor ( ) : MethodReflection Replacement for the original getConstructor() method which makes sure that MethodReflection objects are returned instead of the original ReflectionMethod instances.
getDescription ( ) : string Returns the description part of the doc comment
getInterfaces ( ) : array Replacement for the original getInterfaces() method which makes sure that ClassReflection objects are returned instead of the original ReflectionClass instances.
getMethod ( string $name ) : MethodReflection Replacement for the original getMethod() method which makes sure that MethodReflection objects are returned instead of the orginal ReflectionMethod instances.
getMethods ( integer $filter = null ) : MethodReflection Replacement for the original getMethods() method which makes sure that MethodReflection objects are returned instead of the original ReflectionMethod instances.
getParentClass ( ) : ClassReflection Replacement for the original getParentClass() method which makes sure that a ClassReflection object is returned instead of the orginal ReflectionClass instance.
getProperties ( integer $filter = null ) : array Replacement for the original getProperties() method which makes sure that PropertyReflection objects are returned instead of the orginal ReflectionProperty instances.
getProperty ( string $name ) : PropertyReflection Replacement for the original getProperty() method which makes sure that a PropertyReflection object is returned instead of the orginal ReflectionProperty instance.
getTagValues ( string $tag ) : array Returns the values of the specified tag
getTagsValues ( ) : array Returns an array of tags and their values
isTaggedWith ( string $tag ) : boolean Checks if the doc comment of this method is tagged with the specified tag
newInstanceWithoutConstructor ( ) : object Creates a new class instance without invoking the constructor.

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

Метод Описание
getDocCommentParser ( ) : DocCommentParser Returns an instance of the doc comment parser and runs the parse() method.

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

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

public __construct ( mixed $classNameOrObject )
$classNameOrObject mixed the name of the class or the object to be reflected.

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

Replacement for the original getConstructor() method which makes sure that MethodReflection objects are returned instead of the original ReflectionMethod instances.
public getConstructor ( ) : MethodReflection
Результат MethodReflection Method reflection object of the constructor method

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

Returns the description part of the doc comment
public getDescription ( ) : string
Результат string Doc comment description

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

Returns an instance of the doc comment parser and runs the parse() method.
protected getDocCommentParser ( ) : DocCommentParser
Результат DocCommentParser

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

Replacement for the original getInterfaces() method which makes sure that ClassReflection objects are returned instead of the original ReflectionClass instances.
public getInterfaces ( ) : array
Результат array

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

Replacement for the original getMethod() method which makes sure that MethodReflection objects are returned instead of the orginal ReflectionMethod instances.
public getMethod ( string $name ) : MethodReflection
$name string
Результат MethodReflection Method reflection object of the named method

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

Replacement for the original getMethods() method which makes sure that MethodReflection objects are returned instead of the original ReflectionMethod instances.
public getMethods ( integer $filter = null ) : MethodReflection
$filter integer A filter mask
Результат MethodReflection Method reflection objects of the methods in this class

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

Replacement for the original getParentClass() method which makes sure that a ClassReflection object is returned instead of the orginal ReflectionClass instance.
public getParentClass ( ) : ClassReflection
Результат ClassReflection Reflection of the parent class - if any

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

Replacement for the original getProperties() method which makes sure that PropertyReflection objects are returned instead of the orginal ReflectionProperty instances.
public getProperties ( integer $filter = null ) : array
$filter integer A filter mask
Результат array

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

Replacement for the original getProperty() method which makes sure that a PropertyReflection object is returned instead of the orginal ReflectionProperty instance.
public getProperty ( string $name ) : PropertyReflection
$name string Name of the property
Результат PropertyReflection Property reflection object of the specified property in this class

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

Returns the values of the specified tag
public getTagValues ( string $tag ) : array
$tag string
Результат array Values of the given tag

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

Returns an array of tags and their values
public getTagsValues ( ) : array
Результат array Tags and values

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

Checks if the doc comment of this method is tagged with the specified tag
public isTaggedWith ( string $tag ) : boolean
$tag string Tag name to check for
Результат boolean TRUE if such a tag has been defined, otherwise FALSE

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

Overridden to make sure DI works even when instances are created using newInstanceWithoutConstructor()
См. также: https://github.com/doctrine/doctrine2/commit/530c01b5e3ed7345cde564bd511794ac72f49b65
public newInstanceWithoutConstructor ( ) : object
Результат object

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

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

Holds an instance of the doc comment parser for this class
protected $docCommentParser