Zend\Code\Scanner\ClassScanner
Synopsis
class ClassScanner
implements
ScannerInterface
{
- // members
- protected bool $isScanned;
- protected string $docComment;
- protected string $name;
- protected string $shortName;
- protected int $lineStart;
- protected int $lineEnd;
- protected bool $isFinal;
- protected bool $isAbstract;
- protected bool $isInterface;
- protected string $parentClass;
- protected string $shortParentClass;
- protected array $interfaces;
- protected array $shortInterfaces;
- protected array $tokens;
- protected NameInformation $nameInformation;
- protected array $infos;
- // methods
- public ClassScanner __construct()
- public AnnotationCollection getAnnotations()
- public null|string getDocComment()
- public false|DocBlockScanner getDocBlock()
- public null|string getName()
- public null|string getShortName()
- public int|null getLineStart()
- public int|null getLineEnd()
- public bool isFinal()
- public bool isInstantiable()
- public bool isAbstract()
- public bool isInterface()
- public bool hasParentClass()
- public null|string getParentClass()
- public array getInterfaces()
- public array getConstantNames()
- public array getConstants()
- public bool|ConstantScanner getConstant()
- public bool hasConstant()
- public array getPropertyNames()
- public PropertyScanner getProperties()
- public bool|PropertyScanner getProperty()
- public bool hasProperty()
- public array getMethodNames()
- public array getMethods()
- public MethodScanner getMethod()
- public bool hasMethod()
- public static void export()
- public void __toString()
- protected void scan()
Hierarchy
Tasks
Line | Task |
---|---|
554 | find a way to test this |
Members
protected
- $docComment — string
- $infos — array
- $interfaces — array
- $isAbstract — Zend\Code\Scanner\bool
- $isFinal — Zend\Code\Scanner\bool
- $isInterface — Zend\Code\Scanner\bool
- $isScanned — Zend\Code\Scanner\bool
- $lineEnd — int
- $lineStart — int
- $name — string
- $nameInformation — Zend\Code\NameInformation
- $parentClass — string
- $shortInterfaces — array
- $shortName — string
- $shortParentClass — string
- $tokens — array
Methods
protected
- scan() — Scan tokens
public
- __construct()
- __toString()
- export()
- getAnnotations() — Get annotations
- getConstant() — Return a single constant by given name or index of info
- getConstantNames() — Return a list of constant names
- getConstants() — Return a list of constants
- getDocBlock() — Return documentation block
- getDocComment() — Return documentation comment
- getInterfaces() — Return a list of interface names
- getLineEnd() — Return number of last line
- getLineStart() — Return number of first line
- getMethod() — Return a single method by given name or index of info
- getMethodNames() — Return a list of method names
- getMethods() — Return a list of methods
- getName() — Return a name of class
- getParentClass() — Return a name of parent class
- getProperties() — Return a list of properties
- getProperty() — Return a single property by given name or index of info
- getPropertyNames() — Return a list of property names
- getShortName() — Return short name of class
- hasConstant() — Verify if class has constant
- hasMethod() — Verify if class has method by given name
- hasParentClass() — Verify if class has parent
- hasProperty() — Verify if class has property
- isAbstract() — Verify if class is an abstract class
- isFinal() — Verify if class is final
- isInstantiable() — Verify if class is instantiable
- isInterface() — Verify if class is an interface