PHP 클래스 Nette\PhpGenerator\ClassType

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

공개 메소드들

메소드 설명
__construct ( $name = '', PhpNamespace $namespace = NULL )
__toString ( ) : string
addComment ( $val ) : self
addConst ( $name, $value ) : self
addDocument ( $s )
addExtend ( $type ) : self
addImplement ( $type ) : self
addMethod ( $name ) : Method
addProperty ( $name, $value = NULL ) : Property
addTrait ( $trait ) : self
from ( $from ) : self
getComment ( ) : string | null
getConsts ( ) : array
getDocuments ( )
getExtends ( ) : string | string[]
getImplements ( ) : string[]
getMethod ( $name ) : Method
getMethods ( ) : Method[]
getName ( ) : string
getNamespace ( ) : PhpNamespace | null
getProperties ( ) : Property[]
getProperty ( $name ) : Property
getTraits ( ) : string[]
getType ( ) : string
isAbstract ( ) : boolean
isFinal ( ) : boolean
setAbstract ( $state = TRUE ) : self
setComment ( $val ) : self
setConsts ( array $consts ) : self
setDocuments ( array $s )
setExtends ( $types ) : self
setFinal ( $state = TRUE ) : self
setImplements ( array $types ) : self
setMethods ( array $methods ) : self
setName ( $name ) : self
setProperties ( array $props ) : self
setTraits ( array $traits ) : self
setType ( $type ) : self

메소드 상세

__construct() 공개 메소드

public __construct ( $name = '', PhpNamespace $namespace = NULL )
$namespace PhpNamespace

__toString() 공개 메소드

public __toString ( ) : string
리턴 string PHP code

addComment() 공개 메소드

public addComment ( $val ) : self
리턴 self

addConst() 공개 메소드

public addConst ( $name, $value ) : self
리턴 self

addDocument() 공개 메소드

사용 중단:
public addDocument ( $s )

addExtend() 공개 메소드

public addExtend ( $type ) : self
리턴 self

addImplement() 공개 메소드

public addImplement ( $type ) : self
리턴 self

addMethod() 공개 메소드

public addMethod ( $name ) : Method
리턴 Method

addProperty() 공개 메소드

public addProperty ( $name, $value = NULL ) : Property
리턴 Property

addTrait() 공개 메소드

public addTrait ( $trait ) : self
리턴 self

from() 공개 정적인 메소드

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

getComment() 공개 메소드

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

getConsts() 공개 메소드

public getConsts ( ) : array
리턴 array

getDocuments() 공개 메소드

사용 중단:
public getDocuments ( )

getExtends() 공개 메소드

public getExtends ( ) : string | string[]
리턴 string | string[]

getImplements() 공개 메소드

public getImplements ( ) : string[]
리턴 string[]

getMethod() 공개 메소드

public getMethod ( $name ) : Method
리턴 Method

getMethods() 공개 메소드

public getMethods ( ) : Method[]
리턴 Method[]

getName() 공개 메소드

public getName ( ) : string
리턴 string

getNamespace() 공개 메소드

public getNamespace ( ) : PhpNamespace | null
리턴 PhpNamespace | null

getProperties() 공개 메소드

public getProperties ( ) : Property[]
리턴 Property[]

getProperty() 공개 메소드

public getProperty ( $name ) : Property
리턴 Property

getTraits() 공개 메소드

public getTraits ( ) : string[]
리턴 string[]

getType() 공개 메소드

public getType ( ) : string
리턴 string

isAbstract() 공개 메소드

public isAbstract ( ) : boolean
리턴 boolean

isFinal() 공개 메소드

public isFinal ( ) : boolean
리턴 boolean

setAbstract() 공개 메소드

public setAbstract ( $state = TRUE ) : self
리턴 self

setComment() 공개 메소드

public setComment ( $val ) : self
리턴 self

setConsts() 공개 메소드

public setConsts ( array $consts ) : self
$consts array
리턴 self

setDocuments() 공개 메소드

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

setExtends() 공개 메소드

public setExtends ( $types ) : self
리턴 self

setFinal() 공개 메소드

public setFinal ( $state = TRUE ) : self
리턴 self

setImplements() 공개 메소드

public setImplements ( array $types ) : self
$types array
리턴 self

setMethods() 공개 메소드

public setMethods ( array $methods ) : self
$methods array
리턴 self

setName() 공개 메소드

public setName ( $name ) : self
리턴 self

setProperties() 공개 메소드

public setProperties ( array $props ) : self
$props array
리턴 self

setTraits() 공개 메소드

public setTraits ( array $traits ) : self
$traits array
리턴 self

setType() 공개 메소드

public setType ( $type ) : self
리턴 self