PHP 클래스 PhpParser\Node\Expr\Closure

상속: extends PhpParser\Node\Expr, implements PhpParser\Node\FunctionLike
파일 보기 프로젝트 열기: nikic/PHP-Parser

공개 프로퍼티들

프로퍼티 타입 설명
$byRef Whether to return by reference
$params Parameters
$returnType Return type
$static Whether the closure is static
$stmts Statements
$uses use()s

공개 메소드들

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

메소드 상세

__construct() 공개 메소드

Constructs a lambda function node.
public __construct ( array $subNodes = [], array $attributes = [] )
$subNodes array Array of the following optional subnodes: 'static' => false : Whether the closure is static 'byRef' => false : Whether to return by reference 'params' => array(): Parameters 'uses' => array(): use()s '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 to return by reference
public $byRef

$params 공개적으로 프로퍼티

Parameters
public $params

$returnType 공개적으로 프로퍼티

Return type
public $returnType

$static 공개적으로 프로퍼티

Whether the closure is static
public $static

$stmts 공개적으로 프로퍼티

Statements
public $stmts

$uses 공개적으로 프로퍼티

use()s
public $uses