PHP Class PHPSA\Definition\FunctionDefinition

Inheritance: extends ParentDefinition
Afficher le fichier Open project: ovr/phpsa Class Usage Examples

Protected Properties

Свойство Type Description
$filepath string
$possibleReturnTypes array
$returnTypes integer
$statement PhpParser\Node\Stmt\Function_

Méthodes publiques

Méthode Description
__construct ( string $name, Function_ $statement )
compile ( Context $context ) : boolean Compile function to check it
getFilepath ( ) : string
getNamespace ( ) : string
getParams ( ) : Param[]
setFilepath ( string $filepath )

Method Details

__construct() public méthode

public __construct ( string $name, Function_ $statement )
$name string
$statement PhpParser\Node\Stmt\Function_

compile() public méthode

Compile function to check it
public compile ( Context $context ) : boolean
$context PHPSA\Context
Résultat boolean

getFilepath() public méthode

public getFilepath ( ) : string
Résultat string

getNamespace() public méthode

public getNamespace ( ) : string
Résultat string

getParams() public méthode

public getParams ( ) : Param[]
Résultat PhpParser\Node\Param[]

setFilepath() public méthode

public setFilepath ( string $filepath )
$filepath string

Property Details

$filepath protected_oe property

protected string $filepath
Résultat string

$possibleReturnTypes protected_oe property

protected array $possibleReturnTypes
Résultat array

$returnTypes protected_oe property

protected int $returnTypes
Résultat integer

$statement protected_oe property

protected Function_,PhpParser\Node\Stmt $statement
Résultat PhpParser\Node\Stmt\Function_