PHP 클래스 PhpParser\Node\Stmt\Function_

상속: extends PhpParser\Node\Stmt, implements PhpParser\Node\FunctionLike
파일 보기 프로젝트 열기: nikic/PHP-Parser 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$byRef Whether function returns by reference
$name Name
$params Parameters
$returnType Return type
$stmts Statements

공개 메소드들

메소드 설명
__construct ( string $name, array $subNodes = [], array $attributes = [] ) Constructs a function node.
getParams ( )
getReturnType ( )
getStmts ( )
getSubNodeNames ( )
returnsByRef ( )

메소드 상세

__construct() 공개 메소드

Constructs a function node.
public __construct ( string $name, array $subNodes = [], array $attributes = [] )
$name string Name
$subNodes array Array of the following optional subnodes: 'byRef' => false : Whether to return by reference 'params' => array(): Parameters 'returnType' => null : Return type 'stmts' => array(): Statements
$attributes array Additional attributes

getParams() 공개 메소드

public getParams ( )

getReturnType() 공개 메소드

public getReturnType ( )

getStmts() 공개 메소드

public getStmts ( )

getSubNodeNames() 공개 메소드

public getSubNodeNames ( )

returnsByRef() 공개 메소드

public returnsByRef ( )

프로퍼티 상세

$byRef 공개적으로 프로퍼티

Whether function returns by reference
public $byRef

$name 공개적으로 프로퍼티

Name
public $name

$params 공개적으로 프로퍼티

Parameters
public $params

$returnType 공개적으로 프로퍼티

Return type
public $returnType

$stmts 공개적으로 프로퍼티

Statements
public $stmts