메소드 | 설명 | |
---|---|---|
__construct ( |
||
__toString ( ) : string | ||
addConstant ( |
Add a class constant | |
addInterfaceClassFQSEN ( Phan\Language\FQSEN $fqsen ) : null | ||
addMethod ( |
Add a method to this class | |
addProperty ( |
Add a property to this class | |
addTraitFQSEN ( Phan\Language\FQSEN $fqsen ) : null | ||
analyze ( |
This method should be called after hydration | |
fromClassName ( |
||
fromReflectionClass ( |
||
getAncestorClassList ( |
||
getAncestorFQSENList ( |
||
getCallMethod ( |
||
getCallStaticMethod ( |
||
getConstantMap ( |
||
getConstantWithName ( |
||
getFQSEN ( ) : |
||
getHasDynamicProperties ( |
||
getHierarchyDepth ( |
||
getHierarchyRootFQSEN ( |
||
getInterfaceFQSENList ( ) : array | ||
getIsParentConstructorCalled ( ) : boolean | ||
getMethodByName ( |
||
getMethodByNameInContext ( |
||
getMethodMap ( |
||
getNonParentAncestorFQSENList ( |
||
getOverridableAncestorClassList ( |
||
getOverridableAncestorFQSENList ( |
||
getParentClass ( |
||
getParentClassFQSEN ( ) : |
||
getParentTypeOption ( ) : Option |
||
getPropertyByNameInContext ( |
||
getPropertyList ( |
||
getPropertyMap ( |
||
getReferenceCount ( |
||
getTemplateTypeMap ( ) : array | ||
getTraitFQSENList ( ) : array | ||
hasCallMethod ( |
||
hasCallOrCallStaticMethod ( |
||
hasCallStaticMethod ( |
||
hasConstantWithName ( |
||
hasGetMethod ( |
||
hasGetOrSetMethod ( |
||
hasMethodWithName ( |
||
hasParentType ( ) : boolean | ||
hasPropertyWithName ( |
||
hasSetMethod ( |
||
importAncestorClass ( |
Add properties, constants and methods from the given class to this. | |
importAncestorClasses ( |
Add properties, constants and methods from all ancestors (parents, traits, . | |
importParentClass ( |
* Add properties, constants and methods from the parent of this class | |
isAbstract ( ) : boolean | ||
isFinal ( ) : boolean | ||
isGeneric ( ) : boolean | ||
isInterface ( ) : boolean | ||
isSubclassOf ( |
||
isTrait ( ) : boolean | ||
setHasDynamicProperties ( boolean $has_dynamic_properties ) : void | ||
setIsParentConstructorCalled ( boolean $is_parent_constructor_called ) : void | ||
setParentType ( |
메소드 | 설명 | |
---|---|---|
hydrateOnce ( |
This method must be called before analysis begins. |
메소드 | 설명 | |
---|---|---|
getClassListFromFQSENList ( |
public __construct ( |
||
$context | The context in which the structural element lives | |
$name | string | |
$type | ||
$flags | integer | |
$fqsen | A fully qualified name for this class | |
$parent_type | ||
$interface_fqsen_list | array | |
$trait_fqsen_list | array |
public addConstant ( |
||
$code_base | ||
$constant | ClassConstant | |
리턴 | null; |
public addInterfaceClassFQSEN ( Phan\Language\FQSEN $fqsen ) : null | ||
$fqsen | Phan\Language\FQSEN | Add the given FQSEN to the list of implemented interfaces for this class |
리턴 | null |
public addProperty ( |
||
$code_base | A reference to the code base in which the ancestor exists | |
$property | Property | The property to copy onto this class |
$type_option | Option |
|
리턴 | void |
public addTraitFQSEN ( Phan\Language\FQSEN $fqsen ) : null | ||
$fqsen | Phan\Language\FQSEN | |
리턴 | null |
public static fromClassName ( |
||
$code_base | A reference to the entire code base in which this context exists | |
$class_name | string | The name of a builtin class to build a new Class structural element from. |
리턴 | A Class structural element representing the given named builtin. |
public static fromReflectionClass ( |
||
$code_base | A reference to the entire code base in which this context exists | |
$class | ReflectionClass | A reflection class representing a builtin class. |
리턴 | A Class structural element representing the given named builtin. |
public getAncestorClassList ( |
||
$code_base | The entire code base from which we'll find ancestor details | |
리턴 |
public getAncestorFQSENList ( |
||
$code_base | ||
리턴 |
public getCallMethod ( |
||
$code_base | The entire code base from which we'll find ancestor details | |
리턴 | Method | The magic `__call` method |
public getCallStaticMethod ( |
||
$code_base | The entire code base from which we'll find ancestor details | |
리턴 | Method | The magic `__callStatic` method |
public getConstantMap ( |
||
$code_base | ||
리턴 | array | The constants associated with this class |
public getConstantWithName ( |
||
$code_base | ||
$name | string | |
리턴 | ClassConstant | The class constant with the given name. |
public getFQSEN ( ) : |
||
리턴 |
public getHasDynamicProperties ( |
||
$code_base | ||
리턴 | boolean | True if this class calls its parent constructor |
public getHierarchyDepth ( |
||
$code_base | The entire code base from which we'll find ancestor details | |
리턴 | integer | This class's depth in the class hierarchy |
public getHierarchyRootFQSEN ( |
||
$code_base | The entire code base from which we'll find ancestor details | |
리턴 | The FQSEN of the root class on this class's hiearchy |
public getInterfaceFQSENList ( ) : array | ||
리턴 | array | Get the list of interfaces implemented by this class |
public getIsParentConstructorCalled ( ) : boolean | ||
리턴 | boolean | True if this class calls its parent constructor |
public getMethodByName ( |
||
$code_base | ||
$name | string | |
리턴 | Method | The method with the given name |
public getMethodByNameInContext ( |
||
$code_base | ||
$name | string | |
$context | ||
리턴 | Method | The method with the given name |
public getMethodMap ( |
||
$code_base | ||
리턴 | array | A list of methods on this class |
public getNonParentAncestorFQSENList ( |
||
$code_base | The entire code base from which we'll find ancestor details | |
리턴 |
public getOverridableAncestorClassList ( |
||
$code_base | The entire code base from which we'll find ancestor details | |
리턴 |
public getOverridableAncestorFQSENList ( |
||
$code_base | ||
리턴 | The set of FQSENs representing extended classes and traits for which this class could have overriding methods and properties. |
public getParentClass ( |
||
$code_base | ||
리턴 | The parent class of this class if defined |
public getParentClassFQSEN ( ) : |
||
리턴 | The parent class of this class if one exists |
public getPropertyByNameInContext ( |
||
$code_base | ||
$name | string | The name of the property |
$context | The context of the caller requesting the property | |
리턴 | Property | A property with the given name |
public getPropertyList ( |
||
$code_base | ||
리턴 | Property[] | The list of properties defined on this class |
public getPropertyMap ( |
||
$code_base | ||
리턴 | array | The list of properties on this class |
public getReferenceCount ( |
||
$code_base | ||
리턴 | integer | The number of references to this typed structural element |
public getTemplateTypeMap ( ) : array | ||
리턴 | array | The set of all template types parameterizing this generic class |
public getTraitFQSENList ( ) : array | ||
리턴 | array | A list of FQSEN's for included traits |
public hasCallMethod ( |
||
$code_base | The entire code base from which we'll find ancestor details | |
리턴 | boolean | True if this class has a magic '__call' method |
public hasCallOrCallStaticMethod ( |
||
$code_base | The entire code base from which we'll find ancestor details | |
리턴 | boolean | True if this class has a magic '__call' or '__callStatic' method |
public hasCallStaticMethod ( |
||
$code_base | The entire code base from which we'll find ancestor details | |
리턴 | boolean | True if this class has a magic '__callStatic' method |
public hasConstantWithName ( |
||
$code_base | ||
$name | string | |
리턴 | boolean | True if a constant with the given name is defined on this class. |
public hasGetMethod ( |
||
$code_base | The entire code base from which we'll find ancestor details | |
리턴 | boolean | True if this class has a magic '__get' method |
public hasGetOrSetMethod ( |
||
$code_base | The entire code base from which we'll find ancestor details | |
리턴 | boolean | True if this class has a magic '__get' or '__set' method |
public hasMethodWithName ( |
||
$code_base | ||
$name | string | |
리턴 | boolean | True if this class has a method with the given name |
public hasParentType ( ) : boolean | ||
리턴 | boolean | True if this class has a parent class |
public hasPropertyWithName ( |
||
$code_base | ||
$name | string | |
리턴 | boolean |
public hasSetMethod ( |
||
$code_base | The entire code base from which we'll find ancestor details | |
리턴 | boolean | True if this class has a magic '__set' method |
protected hydrateOnce ( |
||
$code_base | ||
리턴 | void |
public importAncestorClass ( |
||
$code_base | A reference to the code base in which the ancestor exists | |
$class | A class to import from | |
$type_option | Option |
|
리턴 | void |
public importAncestorClasses ( |
||
$code_base | The entire code base from which we'll find ancestor details | |
리턴 | null |
public importParentClass ( |
||
$code_base | The entire code base from which we'll find ancestor details |
public isSubclassOf ( |
||
$code_base | ||
$other | ||
리턴 | boolean |
public setHasDynamicProperties ( boolean $has_dynamic_properties ) : void | ||
$has_dynamic_properties | boolean | |
리턴 | void |
public setIsParentConstructorCalled ( boolean $is_parent_constructor_called ) : void | ||
$is_parent_constructor_called | boolean | |
리턴 | void |
public setParentType ( |
||
$parent_type | The type of the parent (extended) class of this class. | |
리턴 | void |