Properties

$type

$type : string

Property type

Type

string

$name

$name : string

Property name

Type

string

$visibility

$visibility : string

Property visibility

Type

string

$static

$static : boolean

Property static flag

Type

boolean

$value

$value : mixed

Property value

Type

mixed

$indent

$indent : string

Property indent

Type

string

$output

$output : string

Property output

Type

string

Methods

__construct()

__construct(string  $name, string  $type, mixed  $value = null, string  $visibility = 'public') : \Pop\Code\Generator\PropertyGenerator

Constructor

Instantiate the property generator object

Parameters

string $name
string $type
mixed $value
string $visibility

Returns

\Pop\Code\Generator\PropertyGenerator

setStatic()

setStatic(boolean  $static = false) : \Pop\Code\Generator\PropertyGenerator

Set the property static flag

Parameters

boolean $static

Returns

\Pop\Code\Generator\PropertyGenerator

isStatic()

isStatic() : boolean

Get the property static flag

Returns

boolean

getDesc()

getDesc() : string

Get the property description

Returns

string

getIndent()

getIndent() : string

Get the property indent

Returns

string

getType()

getType() : string

Get the property type

Returns

string

getName()

getName() : string

Get the property name

Returns

string

getValue()

getValue() : mixed

Get the property value

Returns

mixed

setVisibility()

setVisibility(string  $visibility = 'public') : \Pop\Code\Generator\PropertyGenerator

Set the property visibility

Parameters

string $visibility

Returns

\Pop\Code\Generator\PropertyGenerator

getVisibility()

getVisibility() : string

Get the property visibility

Returns

string

render()

render(boolean  $ret = false) : mixed

Render property

Parameters

boolean $ret

Returns

mixed

__toString()

__toString() : string

Print property

Returns

string

formatArrayValues()

formatArrayValues() : string

Format array value

Returns

string