Property | Type | Description | |
---|---|---|---|
$optimizable |
Property | Type | Description | |
---|---|---|---|
$callGathererPass | Zephir\Passes\CallGathererPass | Call Gatherer Pass | |
$classDefinition | |||
$docblock | string | ||
$expression | array | null | ||
$isAbstract | boolean | Whether the method is abstract or not | |
$isBundled | boolean | Whether the method is bundled with PHP or not | |
$isFinal | boolean | Whether the method is final or not | |
$isInitializer | boolean | Whether the method is an initializer or not | |
$isInternal | boolean | Whether the method is internal or not | |
$isPublic | boolean | Whether the method is public or not | |
$isStatic | boolean | Whether the method is static or not | |
$localContext | LocalContextPass | ||
$name | string | ||
$parameters | |||
$parsedDocblock | |||
$returnClassTypes | Class type hints returned by the method | ||
$returnTypes | array | Types returned by the method | |
$returnTypesRaw | array | Raw-types returned by the method | |
$statements | |||
$typeInference | Zephir\Passes\StaticTypeInference | Static Type Inference Pass | |
$visibility | array | ||
$void | boolean | Whether the variable is void |
Method | Description | |
---|---|---|
__construct ( |
ClassMethod constructor | |
areReturnTypesBoolCompatible ( string $type = null ) : boolean | Checks whether at least one return type hint is integer compatible | |
areReturnTypesDoubleCompatible ( string $type = null ) : boolean | Checks whether at least one return type hint is double compatible | |
areReturnTypesIntCompatible ( string $type = null ) : boolean | Checks whether at least one return type hint is integer compatible | |
areReturnTypesNullCompatible ( string $type = null ) : boolean | Checks whether at least one return type hint is null compatible | |
areReturnTypesStringCompatible ( string $type = null ) : boolean | Checks whether at least one return type hint is integer compatible | |
assignDefaultValue ( array $parameter, zephir\CompilationContext $compilationContext ) : string | Assigns a default value | |
assignZvalValue ( array $parameter, zephir\CompilationContext $compilationContext ) : string | Assigns a zval value to a static low-level type | |
checkStrictType ( array $parameter, zephir\CompilationContext $compilationContext ) : string | Assigns a zval value to a static low-level type | |
checkVisibility ( array $visibility, string $name, array $original = null ) | Checks for visibility congruence | |
compile ( zephir\CompilationContext $compilationContext ) : null | Compiles the method | |
getCallGathererPass ( ) : Zephir\Passes\CallGathererPass | Returns the call gatherer pass information | |
getClassDefinition ( ) : |
Returns the class definition where the method was declared | |
getDocBlock ( ) : string | Returns the raw docblock | |
getInternalName ( ) : string | ||
getInternalParameters ( ) : string | Returns the number of required parameters the method has | |
getLastLine ( ) : mixed | the ending line of the method in the source file | |
getLine ( ) : mixed | the starting line of the method in the source file | |
getLocalContextPass ( ) : |
Returns the local context pass information | |
getModifiers ( ) : string | Returns the C-modifier flags | |
getName ( ) : string | Returns the method name | |
getNumberOfParameters ( ) : integer | Returns the number of parameters the method has | |
getNumberOfRequiredParameters ( ) : integer | Returns the number of required parameters the method has | |
getOptimizedMethod ( ) | ||
getParameters ( ) : |
Returns the parameters | |
getParsedDocBlock ( ) : |
Returns the parsed docblock | |
getReturnClassTypes ( ) : array | Returned class-type hints by the method | |
getReturnTypes ( ) : array | Returned type hints by the method | |
getReturnTypesRaw ( ) : array | ||
getShortcutName ( ) : mixed | Return shortcut method name | |
getStatementsBlock ( ) : zephir\StatementsBlock | Getter for statements block | |
getStaticTypeInferencePass ( ) : Zephir\Passes\StaticTypeInference | Returns the static type inference pass information | |
getVisibility ( ) : array | Returns method visibility modifiers | |
hasChildReturnStatementType ( array $statement ) : boolean | Simple method to check if one of the paths are returning the right expected type | |
hasModifier ( string $modifier ) : boolean | Checks whether the method has a specific modifier | |
hasParameters ( ) : boolean | Returns the number of parameters the method has | |
hasReturnTypes ( ) : boolean | Checks if the method has return-type or cast hints | |
hasReturnTypesRaw ( ) | ||
isAbstract ( ) : boolean | Checks is abstract method? | |
isBundled ( ) : boolean | Checks whether the method is bundled | |
isConstructor ( ) : boolean | Check whether the current method is a constructor | |
isDeprecated ( ) | ||
isEmpty ( ) : boolean | Checks whether the method is empty | |
isFinal ( ) : boolean | Checks whether the method is final | |
isInitializer ( ) : boolean | Checks whether the method is an initializer | |
isInline ( ) : boolean | Checks if the method is inline | |
isInternal ( ) : boolean | Checks whether the method is internal | |
isPrivate ( ) : boolean | Checks if the method is private | |
isProtected ( ) : boolean | Checks if the method is protected | |
isPublic ( ) : boolean | Checks if the method is public | |
isShortcut ( ) : boolean | Checks if method is a shortcut | |
isStatic ( ) : boolean | Checks whether the method is static | |
isVoid ( ) : boolean | Checks if the method must not return any value | |
preCompile ( zephir\CompilationContext $compilationContext ) : null | Pre-compiles the method making compilation pass data (static inference, local-context-pass) available to other methods | |
removeMemoryStackReferences ( |
Replace macros | |
setIsBundled ( boolean $bundled ) | Sets if the method is bundled or not | |
setIsInitializer ( boolean $initializer ) | Sets if the method is an initializer or not | |
setIsInternal ( boolean $internal ) | Sets if the method is internal or not | |
setIsStatic ( boolean $static ) | Sets if the method is internal or not | |
setName ( string $name ) | Sets the method name | |
setReturnTypes ( $returnType ) | ||
setStatementsBlock ( zephir\StatementsBlock $statementsBlock ) | Setter for statements block | |
setupOptimized ( zephir\CompilationContext $compilationContext ) | Generate internal method's based on the equivalent PHP methods, allowing bypassing php userspace for internal method calls |
public __construct ( |
||
$classDefinition | ||
$visibility | array | |
$name | ||
$parameters | ||
$statements | zephir\StatementsBlock | |
$docblock | null | |
$returnType | null | |
$original | array |
public areReturnTypesBoolCompatible ( string $type = null ) : boolean | ||
$type | string | |
return | boolean |
public areReturnTypesDoubleCompatible ( string $type = null ) : boolean | ||
$type | string | |
return | boolean |
public areReturnTypesIntCompatible ( string $type = null ) : boolean | ||
$type | string | |
return | boolean |
public areReturnTypesNullCompatible ( string $type = null ) : boolean | ||
$type | string | |
return | boolean |
public areReturnTypesStringCompatible ( string $type = null ) : boolean | ||
$type | string | |
return | boolean |
public assignDefaultValue ( array $parameter, zephir\CompilationContext $compilationContext ) : string | ||
$parameter | array | |
$compilationContext | zephir\CompilationContext | |
return | string |
public assignZvalValue ( array $parameter, zephir\CompilationContext $compilationContext ) : string | ||
$parameter | array | |
$compilationContext | zephir\CompilationContext | |
return | string |
public checkStrictType ( array $parameter, zephir\CompilationContext $compilationContext ) : string | ||
$parameter | array | |
$compilationContext | zephir\CompilationContext | |
return | string |
public getCallGathererPass ( ) : Zephir\Passes\CallGathererPass | ||
return | Zephir\Passes\CallGathererPass |
public getClassDefinition ( ) : |
||
return |
public getInternalParameters ( ) : string | ||
return | string |
public getLastLine ( ) : mixed | ||
return | mixed |
public getLocalContextPass ( ) : |
||
return |
public getModifiers ( ) : string | ||
return | string |
public getNumberOfParameters ( ) : integer | ||
return | integer |
public getNumberOfRequiredParameters ( ) : integer | ||
return | integer |
public getParameters ( ) : |
||
return |
public getParsedDocBlock ( ) : |
||
return |
public getReturnClassTypes ( ) : array | ||
return | array |
public getReturnTypes ( ) : array | ||
return | array |
public getShortcutName ( ) : mixed | ||
return | mixed |
public getStatementsBlock ( ) : zephir\StatementsBlock | ||
return | zephir\StatementsBlock | $statements Statements block |
public getStaticTypeInferencePass ( ) : Zephir\Passes\StaticTypeInference | ||
return | Zephir\Passes\StaticTypeInference |
public getVisibility ( ) : array | ||
return | array |
public hasChildReturnStatementType ( array $statement ) : boolean | ||
$statement | array | |
return | boolean |
public hasModifier ( string $modifier ) : boolean | ||
$modifier | string | |
return | boolean |
public hasParameters ( ) : boolean | ||
return | boolean |
public hasReturnTypes ( ) : boolean | ||
return | boolean |
public isAbstract ( ) : boolean | ||
return | boolean |
public isConstructor ( ) : boolean | ||
return | boolean |
public isInitializer ( ) : boolean | ||
return | boolean |
public isInternal ( ) : boolean | ||
return | boolean |
public isProtected ( ) : boolean | ||
return | boolean |
public isShortcut ( ) : boolean | ||
return | boolean |
public preCompile ( zephir\CompilationContext $compilationContext ) : null | ||
$compilationContext | zephir\CompilationContext | |
return | null |
public removeMemoryStackReferences ( |
||
$symbolTable | ||
$containerCode | string | |
return | mixed |
public setIsBundled ( boolean $bundled ) | ||
$bundled | boolean |
public setIsInitializer ( boolean $initializer ) | ||
$initializer | boolean |
public setIsInternal ( boolean $internal ) | ||
$internal | boolean |
public setIsStatic ( boolean $static ) | ||
$static | boolean |
public setStatementsBlock ( zephir\StatementsBlock $statementsBlock ) | ||
$statementsBlock | zephir\StatementsBlock |
public setupOptimized ( zephir\CompilationContext $compilationContext ) | ||
$compilationContext | zephir\CompilationContext |
protected CallGathererPass,Zephir\Passes $callGathererPass | ||
return | Zephir\Passes\CallGathererPass |
protected ClassDefinition,zephir $classDefinition | ||
return |
protected bool $isAbstract | ||
return | boolean |
protected bool $isBundled | ||
return | boolean |
protected bool $isFinal | ||
return | boolean |
protected bool $isInitializer | ||
return | boolean |
protected bool $isInternal | ||
return | boolean |
protected bool $isPublic | ||
return | boolean |
protected bool $isStatic | ||
return | boolean |
protected LocalContextPass,Zephir\Passes $localContext | ||
return |
protected ClassMethodParameters,zephir $parameters | ||
return |
protected Docblock,Zephir\Documentation $parsedDocblock | ||
return |
protected $returnClassTypes |
protected array $returnTypes | ||
return | array |
protected array $returnTypesRaw | ||
return | array |
protected StaticTypeInference,Zephir\Passes $typeInference | ||
return | Zephir\Passes\StaticTypeInference |