PHP Класс Nette\PhpGenerator\ClassType

Наследование: extends Nette\Object
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__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