PHP Класс PHPSA\Definition\ClassMethod

Наследование: extends AbstractDefinition
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$possibleReturnValues array Array of possible return values
$returnType integer Return type
$statement PhpParser\Node\Stmt\ClassMethod
$type integer ..)

Открытые методы

Метод Описание
__construct ( string $name, ClassMethod $statement, integer $type )
addNewType ( integer $newType )
addReturnPossibleValue ( $value )
compile ( Context $context ) : boolean | null
getModifier ( ) : integer
getParams ( ) : Param[]
getPossibleReturnValues ( ) : array
getReturnType ( ) : integer
isAbstract ( ) : boolean
isPrivate ( ) : boolean
isProtected ( ) : boolean
isPublic ( ) : boolean
isStatic ( ) : boolean
run ( Context $context, array $args = null ) : CompiledExpression
setModifier ( integer $type )

Описание методов

__construct() публичный Метод

public __construct ( string $name, ClassMethod $statement, integer $type )
$name string
$statement PhpParser\Node\Stmt\ClassMethod
$type integer

addNewType() публичный Метод

public addNewType ( integer $newType )
$newType integer

addReturnPossibleValue() публичный Метод

public addReturnPossibleValue ( $value )
$value

compile() публичный Метод

public compile ( Context $context ) : boolean | null
$context PHPSA\Context
Результат boolean | null

getModifier() публичный Метод

public getModifier ( ) : integer
Результат integer

getParams() публичный Метод

public getParams ( ) : Param[]
Результат PhpParser\Node\Param[]

getPossibleReturnValues() публичный Метод

public getPossibleReturnValues ( ) : array
Результат array

getReturnType() публичный Метод

public getReturnType ( ) : integer
Результат integer

isAbstract() публичный Метод

public isAbstract ( ) : boolean
Результат boolean

isPrivate() публичный Метод

public isPrivate ( ) : boolean
Результат boolean

isProtected() публичный Метод

public isProtected ( ) : boolean
Результат boolean

isPublic() публичный Метод

public isPublic ( ) : boolean
Результат boolean

isStatic() публичный Метод

public isStatic ( ) : boolean
Результат boolean

run() публичный Метод

public run ( Context $context, array $args = null ) : CompiledExpression
$context PHPSA\Context
$args array
Результат PHPSA\CompiledExpression

setModifier() публичный Метод

public setModifier ( integer $type )
$type integer

Описание свойств

$possibleReturnValues защищенное свойство

Array of possible return values
protected array $possibleReturnValues
Результат array

$returnType защищенное свойство

Return type
protected int $returnType
Результат integer

$statement защищенное свойство

protected ClassMethod,PhpParser\Node\Stmt $statement
Результат PhpParser\Node\Stmt\ClassMethod

$type защищенное свойство

..)
protected int $type
Результат integer