PHP Class PHPSA\Definition\FunctionDefinition

Inheritance: extends ParentDefinition
Datei anzeigen Open project: ovr/phpsa Class Usage Examples

Protected Properties

Property Type Description
$filepath string
$possibleReturnTypes array
$returnTypes integer
$statement PhpParser\Node\Stmt\Function_

Public Methods

Method 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 method

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

compile() public method

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

getFilepath() public method

public getFilepath ( ) : string
return string

getNamespace() public method

public getNamespace ( ) : string
return string

getParams() public method

public getParams ( ) : Param[]
return PhpParser\Node\Param[]

setFilepath() public method

public setFilepath ( string $filepath )
$filepath string

Property Details

$filepath protected_oe property

protected string $filepath
return string

$possibleReturnTypes protected_oe property

protected array $possibleReturnTypes
return array

$returnTypes protected_oe property

protected int $returnTypes
return integer

$statement protected_oe property

protected Function_,PhpParser\Node\Stmt $statement
return PhpParser\Node\Stmt\Function_