PHP 클래스 PHPSA\Definition\FunctionDefinition

상속: extends ParentDefinition
파일 보기 프로젝트 열기: ovr/phpsa 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$filepath string
$possibleReturnTypes array
$returnTypes integer
$statement PhpParser\Node\Stmt\Function_

공개 메소드들

메소드 설명
__construct ( string $name, Function_ $statement )
compile ( Context $context ) : boolean Compile function to check it
getFilepath ( ) : string
getNamespace ( ) : string
getParams ( ) : Param[]
setFilepath ( string $filepath )

메소드 상세

__construct() 공개 메소드

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

compile() 공개 메소드

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

getFilepath() 공개 메소드

public getFilepath ( ) : string
리턴 string

getNamespace() 공개 메소드

public getNamespace ( ) : string
리턴 string

getParams() 공개 메소드

public getParams ( ) : Param[]
리턴 PhpParser\Node\Param[]

setFilepath() 공개 메소드

public setFilepath ( string $filepath )
$filepath string

프로퍼티 상세

$filepath 보호되어 있는 프로퍼티

protected string $filepath
리턴 string

$possibleReturnTypes 보호되어 있는 프로퍼티

protected array $possibleReturnTypes
리턴 array

$returnTypes 보호되어 있는 프로퍼티

protected int $returnTypes
리턴 integer

$statement 보호되어 있는 프로퍼티

protected Function_,PhpParser\Node\Stmt $statement
리턴 PhpParser\Node\Stmt\Function_