PHP 클래스 Nette\PhpGenerator\Method

상속: extends Nette\Object
파일 보기 프로젝트 열기: nette/php-generator 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( $name = NULL )
__toString ( ) : string
addBody ( $statement, array $args = NULL ) : self
addComment ( $val ) : self
addDocument ( $s )
addParameter ( $name, $defaultValue = NULL ) : Parameter
addUse ( $name ) : Parameter
from ( $from ) : self
getBody ( ) : string
getComment ( ) : string | null
getDocuments ( )
getName ( ) : string | null
getParameters ( ) : Parameter[]
getReturnReference ( ) : boolean
getReturnType ( ) : string | null
getUses ( ) : array
getVisibility ( ) : string | null
isAbstract ( ) : boolean
isFinal ( ) : boolean
isStatic ( ) : boolean
isVariadic ( ) : boolean
setAbstract ( $val ) : self
setBody ( $statement, array $args = NULL ) : self
setComment ( $val ) : self
setDocuments ( array $s )
setFinal ( $val ) : self
setName ( $name )
setNamespace ( PhpNamespace $val = NULL ) : self
setParameters ( array $val ) : self
setReturnReference ( $val ) : self
setReturnType ( $val ) : self
setStatic ( $val ) : self
setUses ( array $val ) : self
setVariadic ( $val ) : self
setVisibility ( $val ) : self

메소드 상세

__construct() 공개 메소드

public __construct ( $name = NULL )

__toString() 공개 메소드

public __toString ( ) : string
리턴 string PHP code

addBody() 공개 메소드

public addBody ( $statement, array $args = NULL ) : self
$args array
리턴 self

addComment() 공개 메소드

public addComment ( $val ) : self
리턴 self

addDocument() 공개 메소드

사용 중단:
public addDocument ( $s )

addParameter() 공개 메소드

public addParameter ( $name, $defaultValue = NULL ) : Parameter
리턴 Parameter

addUse() 공개 메소드

public addUse ( $name ) : Parameter
리턴 Parameter

from() 공개 정적인 메소드

public static from ( $from ) : self
리턴 self

getBody() 공개 메소드

public getBody ( ) : string
리턴 string

getComment() 공개 메소드

public getComment ( ) : string | null
리턴 string | null

getDocuments() 공개 메소드

사용 중단:
public getDocuments ( )

getName() 공개 메소드

public getName ( ) : string | null
리턴 string | null

getParameters() 공개 메소드

public getParameters ( ) : Parameter[]
리턴 Parameter[]

getReturnReference() 공개 메소드

public getReturnReference ( ) : boolean
리턴 boolean

getReturnType() 공개 메소드

public getReturnType ( ) : string | null
리턴 string | null

getUses() 공개 메소드

public getUses ( ) : array
리턴 array

getVisibility() 공개 메소드

public getVisibility ( ) : string | null
리턴 string | null

isAbstract() 공개 메소드

public isAbstract ( ) : boolean
리턴 boolean

isFinal() 공개 메소드

public isFinal ( ) : boolean
리턴 boolean

isStatic() 공개 메소드

public isStatic ( ) : boolean
리턴 boolean

isVariadic() 공개 메소드

public isVariadic ( ) : boolean
리턴 boolean

setAbstract() 공개 메소드

public setAbstract ( $val ) : self
리턴 self

setBody() 공개 메소드

public setBody ( $statement, array $args = NULL ) : self
$args array
리턴 self

setComment() 공개 메소드

public setComment ( $val ) : self
리턴 self

setDocuments() 공개 메소드

사용 중단:
public setDocuments ( array $s )
$s array

setFinal() 공개 메소드

public setFinal ( $val ) : self
리턴 self

setName() 공개 메소드

사용 중단:
public setName ( $name )

setNamespace() 공개 메소드

public setNamespace ( PhpNamespace $val = NULL ) : self
$val PhpNamespace
리턴 self

setParameters() 공개 메소드

public setParameters ( array $val ) : self
$val array
리턴 self

setReturnReference() 공개 메소드

public setReturnReference ( $val ) : self
리턴 self

setReturnType() 공개 메소드

public setReturnType ( $val ) : self
리턴 self

setStatic() 공개 메소드

public setStatic ( $val ) : self
리턴 self

setUses() 공개 메소드

public setUses ( array $val ) : self
$val array
리턴 self

setVariadic() 공개 메소드

public setVariadic ( $val ) : self
리턴 self

setVisibility() 공개 메소드

public setVisibility ( $val ) : self
리턴 self