Method | Description | |
---|---|---|
__construct ( |
||
__toString ( ) : string | ||
asNonVariadic ( ) : static | Stub for compatibility with Parameter, since we replace the Parameter with a Variable and call setParameterList in PostOrderAnalysisVisitor->visitStaticCall TODO: Should that code create a new Parameter instance instead? | |
fromNodeInContext ( ast\Node $node, |
||
getUnionTypeOfHardcodedGlobalVariableWithName ( string $name, |
||
getVariadicElementUnionType ( ) : |
Variables can't be variadic. This is the same as getUnionType for variables, but not necessarily for subclasses. Method will return the element type (such as DateTime) for variadic parameters. | |
isHardcodedGlobalVariableWithName ( string $name ) : boolean | Returns true for all superglobals and variables in globals_type_map. | |
isPassByReference ( ) : boolean | ||
isSuperglobalVariableWithName ( string $name ) : boolean | ||
isVariadic ( ) : boolean |
public __construct ( |
||
$context | The context in which the structural element lives | |
$name | string | |
$type | ||
$flags | integer |
public asNonVariadic ( ) : static | ||
return | static |
public static fromNodeInContext ( ast\Node $node, |
||
$node | ast\Node | An AST_VAR node |
$context | The context in which the variable is found | |
$code_base | ||
$should_check_type | boolean | |
return | A variable begotten from a node |
public static getUnionTypeOfHardcodedGlobalVariableWithName ( string $name, |
||
$name | string | |
$context | ||
return | Returns UnionType (Possible with empty set) if and only if isHardcodedGlobalVariableWithName is true. Returns null otherwise. |
public getVariadicElementUnionType ( ) : |
||
return |
public static isHardcodedGlobalVariableWithName ( string $name ) : boolean | ||
$name | string | |
return | boolean |
public isPassByReference ( ) : boolean | ||
return | boolean | This will always return false in so far as variables cannot be passed by reference. |
public static isSuperglobalVariableWithName ( string $name ) : boolean | ||
$name | string | |
return | boolean | True if the variable with the given name is a superglobal Implies Variable::isHardcodedGlobalVariableWithName($name) is true |
public isVariadic ( ) : boolean | ||
return | boolean | This will always return false in so far as variables cannot be variadic |