PHP 클래스 Pop\Code\Generator\PropertyGenerator

저자: Nick Sagona, III ([email protected])
상속: implements Pop\Code\Generator\GeneratorInterface
파일 보기 프로젝트 열기: nicksagona/PopPHP 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$docblock DocblockGenerator Docblock generator object
$indent string Property indent
$name string Property name
$output string Property output
$static boolean Property static flag
$type string Property type
$value mixed Property value
$visibility string Property visibility

공개 메소드들

메소드 설명
__construct ( string $name, string $type, mixed $value = null, string $visibility = 'public' ) : PropertyGenerator Constructor
__toString ( ) : string Print property
factory ( string $name, string $type, mixed $value = null, string $visibility = 'public' ) : PropertyGenerator Static method to instantiate the property generator object and return itself to facilitate chaining methods together.
getDesc ( ) : string Get the property description
getDocblock ( ) : DocblockGenerator Access the docblock generator object
getIndent ( ) : string Get the property indent
getName ( ) : string Get the property name
getType ( ) : string Get the property type
getValue ( ) : mixed Get the property value
getVisibility ( ) : string Get the property visibility
isStatic ( ) : boolean Get the property static flag
render ( boolean $ret = false ) : mixed Render property
setDesc ( string $desc = null ) : PropertyGenerator Set the property description
setDocblock ( DocblockGenerator $docblock ) : PropertyGenerator Set the docblock generator object
setIndent ( string $indent = null ) : PropertyGenerator Set the property indent
setName ( string $name ) : PropertyGenerator Set the property name
setStatic ( boolean $static = false ) : PropertyGenerator Set the property static flag
setType ( string $type ) : PropertyGenerator Set the property type
setValue ( mixed $value = null ) : PropertyGenerator Set the property value
setVisibility ( string $visibility = 'public' ) : PropertyGenerator Set the property visibility

보호된 메소드들

메소드 설명
formatArrayValues ( ) : string Format array value

메소드 상세

__construct() 공개 메소드

Instantiate the property generator object
public __construct ( string $name, string $type, mixed $value = null, string $visibility = 'public' ) : PropertyGenerator
$name string
$type string
$value mixed
$visibility string
리턴 PropertyGenerator

__toString() 공개 메소드

Print property
public __toString ( ) : string
리턴 string

factory() 공개 정적인 메소드

Static method to instantiate the property generator object and return itself to facilitate chaining methods together.
public static factory ( string $name, string $type, mixed $value = null, string $visibility = 'public' ) : PropertyGenerator
$name string
$type string
$value mixed
$visibility string
리턴 PropertyGenerator

formatArrayValues() 보호된 메소드

Format array value
protected formatArrayValues ( ) : string
리턴 string

getDesc() 공개 메소드

Get the property description
public getDesc ( ) : string
리턴 string

getDocblock() 공개 메소드

Access the docblock generator object
public getDocblock ( ) : DocblockGenerator
리턴 DocblockGenerator

getIndent() 공개 메소드

Get the property indent
public getIndent ( ) : string
리턴 string

getName() 공개 메소드

Get the property name
public getName ( ) : string
리턴 string

getType() 공개 메소드

Get the property type
public getType ( ) : string
리턴 string

getValue() 공개 메소드

Get the property value
public getValue ( ) : mixed
리턴 mixed

getVisibility() 공개 메소드

Get the property visibility
public getVisibility ( ) : string
리턴 string

isStatic() 공개 메소드

Get the property static flag
public isStatic ( ) : boolean
리턴 boolean

render() 공개 메소드

Render property
public render ( boolean $ret = false ) : mixed
$ret boolean
리턴 mixed

setDesc() 공개 메소드

Set the property description
public setDesc ( string $desc = null ) : PropertyGenerator
$desc string
리턴 PropertyGenerator

setDocblock() 공개 메소드

Set the docblock generator object
public setDocblock ( DocblockGenerator $docblock ) : PropertyGenerator
$docblock DocblockGenerator
리턴 PropertyGenerator

setIndent() 공개 메소드

Set the property indent
public setIndent ( string $indent = null ) : PropertyGenerator
$indent string
리턴 PropertyGenerator

setName() 공개 메소드

Set the property name
public setName ( string $name ) : PropertyGenerator
$name string
리턴 PropertyGenerator

setStatic() 공개 메소드

Set the property static flag
public setStatic ( boolean $static = false ) : PropertyGenerator
$static boolean
리턴 PropertyGenerator

setType() 공개 메소드

Set the property type
public setType ( string $type ) : PropertyGenerator
$type string
리턴 PropertyGenerator

setValue() 공개 메소드

Set the property value
public setValue ( mixed $value = null ) : PropertyGenerator
$value mixed
리턴 PropertyGenerator

setVisibility() 공개 메소드

Set the property visibility
public setVisibility ( string $visibility = 'public' ) : PropertyGenerator
$visibility string
리턴 PropertyGenerator

프로퍼티 상세

$docblock 보호되어 있는 프로퍼티

Docblock generator object
protected DocblockGenerator,Pop\Code\Generator $docblock
리턴 DocblockGenerator

$indent 보호되어 있는 프로퍼티

Property indent
protected string $indent
리턴 string

$name 보호되어 있는 프로퍼티

Property name
protected string $name
리턴 string

$output 보호되어 있는 프로퍼티

Property output
protected string $output
리턴 string

$static 보호되어 있는 프로퍼티

Property static flag
protected bool $static
리턴 boolean

$type 보호되어 있는 프로퍼티

Property type
protected string $type
리턴 string

$value 보호되어 있는 프로퍼티

Property value
protected mixed $value
리턴 mixed

$visibility 보호되어 있는 프로퍼티

Property visibility
protected string $visibility
리턴 string