Method | Description | |
---|---|---|
__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 ( |
Method | Description | |
---|---|---|
hydrateOnce ( |
This method must be called before analysis begins. |
Method | Description | |
---|---|---|
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 __toString ( ) : string | ||
return | string | A string describing this class |
public addConstant ( |
||
$code_base | ||
$constant | ClassConstant | |
return | 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 |
return | 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 |
|
return | void |
public addTraitFQSEN ( Phan\Language\FQSEN $fqsen ) : null | ||
$fqsen | Phan\Language\FQSEN | |
return | 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. |
return | 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. |
return | A Class structural element representing the given named builtin. |
public getAncestorClassList ( |
||
$code_base | The entire code base from which we'll find ancestor details | |
return |
public getAncestorFQSENList ( |
||
$code_base | ||
return |
public getCallMethod ( |
||
$code_base | The entire code base from which we'll find ancestor details | |
return | Method | The magic `__call` method |
public getCallStaticMethod ( |
||
$code_base | The entire code base from which we'll find ancestor details | |
return | Method | The magic `__callStatic` method |
public getConstantMap ( |
||
$code_base | ||
return | array | The constants associated with this class |
public getConstantWithName ( |
||
$code_base | ||
$name | string | |
return | ClassConstant | The class constant with the given name. |
public getFQSEN ( ) : |
||
return |
public getHasDynamicProperties ( |
||
$code_base | ||
return | boolean | True if this class calls its parent constructor |
public getHierarchyDepth ( |
||
$code_base | The entire code base from which we'll find ancestor details | |
return | integer | This class's depth in the class hierarchy |
public getHierarchyRootFQSEN ( |
||
$code_base | The entire code base from which we'll find ancestor details | |
return | The FQSEN of the root class on this class's hiearchy |
public getInterfaceFQSENList ( ) : array | ||
return | array | Get the list of interfaces implemented by this class |
public getIsParentConstructorCalled ( ) : boolean | ||
return | boolean | True if this class calls its parent constructor |
public getMethodByName ( |
||
$code_base | ||
$name | string | |
return | Method | The method with the given name |
public getMethodByNameInContext ( |
||
$code_base | ||
$name | string | |
$context | ||
return | Method | The method with the given name |
public getMethodMap ( |
||
$code_base | ||
return | array | A list of methods on this class |
public getNonParentAncestorFQSENList ( |
||
$code_base | The entire code base from which we'll find ancestor details | |
return |
public getOverridableAncestorClassList ( |
||
$code_base | The entire code base from which we'll find ancestor details | |
return |
public getOverridableAncestorFQSENList ( |
||
$code_base | ||
return | The set of FQSENs representing extended classes and traits for which this class could have overriding methods and properties. |
public getParentClass ( |
||
$code_base | ||
return | The parent class of this class if defined |
public getParentClassFQSEN ( ) : |
||
return | 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 | |
return | Property | A property with the given name |
public getPropertyList ( |
||
$code_base | ||
return | Property[] | The list of properties defined on this class |
public getPropertyMap ( |
||
$code_base | ||
return | array | The list of properties on this class |
public getReferenceCount ( |
||
$code_base | ||
return | integer | The number of references to this typed structural element |
public getTemplateTypeMap ( ) : array | ||
return | array | The set of all template types parameterizing this generic class |
public getTraitFQSENList ( ) : array | ||
return | array | A list of FQSEN's for included traits |
public hasCallMethod ( |
||
$code_base | The entire code base from which we'll find ancestor details | |
return | 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 | |
return | 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 | |
return | boolean | True if this class has a magic '__callStatic' method |
public hasConstantWithName ( |
||
$code_base | ||
$name | string | |
return | 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 | |
return | 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 | |
return | boolean | True if this class has a magic '__get' or '__set' method |
public hasMethodWithName ( |
||
$code_base | ||
$name | string | |
return | boolean | True if this class has a method with the given name |
public hasParentType ( ) : boolean | ||
return | boolean | True if this class has a parent class |
public hasPropertyWithName ( |
||
$code_base | ||
$name | string | |
return | boolean |
public hasSetMethod ( |
||
$code_base | The entire code base from which we'll find ancestor details | |
return | boolean | True if this class has a magic '__set' method |
protected hydrateOnce ( |
||
$code_base | ||
return | 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 |
|
return | void |
public importAncestorClasses ( |
||
$code_base | The entire code base from which we'll find ancestor details | |
return | null |
public importParentClass ( |
||
$code_base | The entire code base from which we'll find ancestor details |
public isAbstract ( ) : boolean | ||
return | boolean | True if this is an abstract class |
public isInterface ( ) : boolean | ||
return | boolean | True if this is an interface |
public isSubclassOf ( |
||
$code_base | ||
$other | ||
return | boolean |
public setHasDynamicProperties ( boolean $has_dynamic_properties ) : void | ||
$has_dynamic_properties | boolean | |
return | void |
public setIsParentConstructorCalled ( boolean $is_parent_constructor_called ) : void | ||
$is_parent_constructor_called | boolean | |
return | void |
public setParentType ( |
||
$parent_type | The type of the parent (extended) class of this class. | |
return | void |