Properties

$name

$name : string

Name

Type

string

$visibility

$visibility : string

Visibility

Type

string

$static

$static : boolean

Static flag

Type

boolean

$indent

$indent : integer

Code indent spaces

Type

integer

$output

$output : string

Output string

Type

string

$type

$type : string

Property type

Type

string

$value

$value : mixed

Property value

Type

mixed

Methods

getName()

getName() : string

Get the name

Returns

string

hasName()

hasName() : boolean

Get the name

Returns

boolean

hasDocblock()

hasDocblock() : boolean

Has docblock generator object

Returns

boolean

getDesc()

getDesc() : string

Get the docblock description

Returns

string

hasDesc()

hasDesc() : boolean

Has a docblock description

Returns

boolean

isPublic()

isPublic() : boolean

Is visibility public

Returns

boolean

isProtected()

isProtected() : boolean

Set the visibility to protected

Returns

boolean

isPrivate()

isPrivate() : boolean

Set the visibility to private

Returns

boolean

getVisibility()

getVisibility() : string

Get the visibility

Returns

string

isStatic()

isStatic() : boolean

Get the static flag

Returns

boolean

getIndent()

getIndent() : integer

Get the indent

Returns

integer

hasIndent()

hasIndent() : boolean

Has indent

Returns

boolean

printIndent()

printIndent() : string

Print the indent

Returns

string

getOutput()

getOutput() : string

Get the output

Returns

string

hasOutput()

hasOutput() : boolean

Has output

Returns

boolean

isRendered()

isRendered() : boolean

Is rendered (alias to hasOutput())

Returns

boolean

render()

render() : mixed

Render property

Returns

mixed

__construct()

__construct(string  $name, string  $type = null, mixed  $value = null, string  $visibility = 'public', boolean  $static = false) 

Constructor

Instantiate the property generator object

Parameters

string $name
string $type
mixed $value
string $visibility
boolean $static

getType()

getType() : string

Get the property type

Returns

string

hasType()

hasType() : boolean

Has property type

Returns

boolean

getValue()

getValue() : mixed

Get the property value

Returns

mixed

hasValue()

hasValue() : boolean

Has property value

Returns

boolean

__toString()

__toString() : string

Print property

Returns

string

formatArrayValues()

formatArrayValues() : string

Format array value

Returns

string