PHP 클래스 PhpParser\Node\Stmt\ClassLike

상속: extends PhpParser\Node\Stmt
파일 보기 프로젝트 열기: nikic/php-parser 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$name Name
$stmts Statements

공개 메소드들

메소드 설명
getMethod ( string $name ) : ClassMethod | null Gets method with the given name defined directly in this class/interface/trait.
getMethods ( ) : ClassMethod[] Gets all methods defined directly in this class/interface/trait

메소드 상세

getMethod() 공개 메소드

Gets method with the given name defined directly in this class/interface/trait.
public getMethod ( string $name ) : ClassMethod | null
$name string Name of the method (compared case-insensitively)
리턴 ClassMethod | null Method node or null if the method does not exist

getMethods() 공개 메소드

Gets all methods defined directly in this class/interface/trait
public getMethods ( ) : ClassMethod[]
리턴 ClassMethod[]

프로퍼티 상세

$name 공개적으로 프로퍼티

Name
public $name

$stmts 공개적으로 프로퍼티

Statements
public $stmts