PHP Класс Zend\Code\Scanner\ClassScanner

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

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

Свойство Тип Описание
$docComment string
$infos array
$interfaces array
$isAbstract boolean
$isFinal boolean
$isInterface boolean
$isScanned boolean
$isTrait boolean
$lineEnd integer
$lineStart integer
$methods array
$name string
$nameInformation Zend\Code\NameInformation
$parentClass string
$shortInterfaces array
$shortName string
$shortParentClass string
$tokens array
$traits array

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

Метод Описание
__construct ( array $classTokens, Zend\Code\NameInformation $nameInformation = null ) : ClassScanner
__toString ( )
export ( )
getAnnotations ( Zend\Code\Annotation\AnnotationManager $annotationManager ) : Zend\Code\Annotation\AnnotationCollection Get annotations
getConstant ( string | integer $constantNameOrInfoIndex ) : boolean | Zend\Code\Scanner\ConstantScanner Return a single constant by given name or index of info
getConstantNames ( ) : array Return a list of constant names
getConstants ( boolean $namesOnly = true ) : array | Zend\Code\Scanner\ConstantScanner[] Return a list of constants
getDocBlock ( ) : false | Zend\Code\Scanner\DocBlockScanner Return documentation block
getDocComment ( ) : null | string Return documentation comment
getInterfaces ( ) : array Return a list of interface names
getLineEnd ( ) : integer | null Return number of last line
getLineStart ( ) : integer | null Return number of first line
getMethod ( string | integer $methodNameOrInfoIndex ) : Zend\Code\Scanner\MethodScanner Return a single method by given name or index of info
getMethodNames ( ) : array Return a list of method names
getMethods ( ) : Zend\Code\Scanner\MethodScanner[] Return a list of methods
getName ( ) : null | string Return a name of class
getParentClass ( ) : null | string Return a name of parent class
getProperties ( ) : Zend\Code\Scanner\PropertyScanner[] Return a list of properties
getProperty ( string | integer $propertyNameOrInfoIndex ) : boolean | Zend\Code\Scanner\PropertyScanner Return a single property by given name or index of info
getPropertyNames ( ) : array Return a list of property names
getShortName ( ) : null | string Return short name of class
getTraitAliases ( ) : array Retrieve a list of aliased traits used by the class.
getTraitNames ( ) : array Retrieve a list of trait names used by this class.
getTraits ( ) : ClassScanner[] Retrieve any traits used by the class.
hasConstant ( string $name ) : boolean Verify if class has constant
hasMethod ( string $name ) : boolean Verify if class has method by given name
hasParentClass ( ) : boolean Verify if class has parent
hasProperty ( string $name ) : boolean Verify if class has property
isAbstract ( ) : boolean Verify if class is an abstract class
isFinal ( ) : boolean Verify if class is final
isInstantiable ( ) : boolean Verify if class is instantiable
isInterface ( ) : boolean Verify if class is an interface
isTrait ( ) : boolean Verify if class is a trait

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

Метод Описание
getBlockedTraitMethods ( ) : array Return an array of key = trait to keep, value = trait::method to ignore
getVisibilityForAlias ( mixed $aliasName ) : string Retrieve visibility for a given alias.
scan ( ) : void Scan tokens

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

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

public __construct ( array $classTokens, Zend\Code\NameInformation $nameInformation = null ) : ClassScanner
$classTokens array
$nameInformation Zend\Code\NameInformation
Результат ClassScanner

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

public __toString ( )

export() публичный статический Метод

public static export ( )

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

Get annotations
public getAnnotations ( Zend\Code\Annotation\AnnotationManager $annotationManager ) : Zend\Code\Annotation\AnnotationCollection
$annotationManager Zend\Code\Annotation\AnnotationManager
Результат Zend\Code\Annotation\AnnotationCollection

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

Return an array of key = trait to keep, value = trait::method to ignore
protected getBlockedTraitMethods ( ) : array
Результат array

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

Return a single constant by given name or index of info
public getConstant ( string | integer $constantNameOrInfoIndex ) : boolean | Zend\Code\Scanner\ConstantScanner
$constantNameOrInfoIndex string | integer
Результат boolean | Zend\Code\Scanner\ConstantScanner

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

Return a list of constant names
public getConstantNames ( ) : array
Результат array

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

Return a list of constants
public getConstants ( boolean $namesOnly = true ) : array | Zend\Code\Scanner\ConstantScanner[]
$namesOnly boolean Set false to return instances of ConstantScanner
Результат array | Zend\Code\Scanner\ConstantScanner[]

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

Return documentation block
public getDocBlock ( ) : false | Zend\Code\Scanner\DocBlockScanner
Результат false | Zend\Code\Scanner\DocBlockScanner

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

Return documentation comment
public getDocComment ( ) : null | string
Результат null | string

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

Return a list of interface names
public getInterfaces ( ) : array
Результат array

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

Return number of last line
public getLineEnd ( ) : integer | null
Результат integer | null

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

Return number of first line
public getLineStart ( ) : integer | null
Результат integer | null

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

Return a single method by given name or index of info
public getMethod ( string | integer $methodNameOrInfoIndex ) : Zend\Code\Scanner\MethodScanner
$methodNameOrInfoIndex string | integer
Результат Zend\Code\Scanner\MethodScanner

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

Return a list of method names
public getMethodNames ( ) : array
Результат array

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

Return a list of methods
public getMethods ( ) : Zend\Code\Scanner\MethodScanner[]
Результат Zend\Code\Scanner\MethodScanner[]

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

Return a name of class
public getName ( ) : null | string
Результат null | string

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

Return a name of parent class
public getParentClass ( ) : null | string
Результат null | string

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

Return a list of properties
public getProperties ( ) : Zend\Code\Scanner\PropertyScanner[]
Результат Zend\Code\Scanner\PropertyScanner[]

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

Return a single property by given name or index of info
public getProperty ( string | integer $propertyNameOrInfoIndex ) : boolean | Zend\Code\Scanner\PropertyScanner
$propertyNameOrInfoIndex string | integer
Результат boolean | Zend\Code\Scanner\PropertyScanner

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

Return a list of property names
public getPropertyNames ( ) : array
Результат array

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

Return short name of class
public getShortName ( ) : null | string
Результат null | string

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

Retrieve a list of aliased traits used by the class.
public getTraitAliases ( ) : array
Результат array

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

Retrieve a list of trait names used by this class.
public getTraitNames ( ) : array
Результат array

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

Retrieve any traits used by the class.
public getTraits ( ) : ClassScanner[]
Результат ClassScanner[]

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

Retrieve visibility for a given alias.
protected getVisibilityForAlias ( mixed $aliasName ) : string
$aliasName mixed
Результат string

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

Verify if class has constant
public hasConstant ( string $name ) : boolean
$name string
Результат boolean

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

Verify if class has method by given name
public hasMethod ( string $name ) : boolean
$name string
Результат boolean

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

Verify if class has parent
public hasParentClass ( ) : boolean
Результат boolean

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

Verify if class has property
public hasProperty ( string $name ) : boolean
$name string
Результат boolean

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

Verify if class is an abstract class
public isAbstract ( ) : boolean
Результат boolean

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

Verify if class is final
public isFinal ( ) : boolean
Результат boolean

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

Verify if class is instantiable
public isInstantiable ( ) : boolean
Результат boolean

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

Verify if class is an interface
public isInterface ( ) : boolean
Результат boolean

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

Verify if class is a trait
public isTrait ( ) : boolean
Результат boolean

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

Scan tokens
protected scan ( ) : void
Результат void

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

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

protected string $docComment
Результат string

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

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

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

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

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

protected bool $isAbstract
Результат boolean

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

protected bool $isFinal
Результат boolean

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

protected bool $isInterface
Результат boolean

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

protected bool $isScanned
Результат boolean

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

protected bool $isTrait
Результат boolean

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

protected int $lineEnd
Результат integer

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

protected int $lineStart
Результат integer

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

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

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

protected string $name
Результат string

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

protected NameInformation,Zend\Code $nameInformation
Результат Zend\Code\NameInformation

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

protected string $parentClass
Результат string

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

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

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

protected string $shortName
Результат string

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

protected string $shortParentClass
Результат string

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

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

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

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