Class PropertyGenerator

Summary

Fully Qualified Name: Laminas\Code\Generator\PropertyGenerator
Extends: AbstractMemberGenerator

Description

Methods

Name Description Defined By
__construct() PropertyGenerator
addFlag() AbstractMemberGenerator
fromArray() Generate from array PropertyGenerator
fromReflection() PropertyGenerator
generate() PropertyGenerator
getDefaultValue() PropertyGenerator
getDocBlock() AbstractMemberGenerator
getIndentation() AbstractGenerator
getName() AbstractMemberGenerator
getSourceContent() AbstractGenerator
getVisibility() AbstractMemberGenerator
isAbstract() AbstractMemberGenerator
isConst() PropertyGenerator
isFinal() AbstractMemberGenerator
isInterface() AbstractMemberGenerator
isSourceDirty() AbstractGenerator
isStatic() AbstractMemberGenerator
omitDefaultValue() PropertyGenerator
removeDocBlock() AbstractMemberGenerator
removeFlag() AbstractMemberGenerator
setAbstract() AbstractMemberGenerator
setConst() PropertyGenerator
setDefaultValue() PropertyGenerator
setDocBlock() AbstractMemberGenerator
setFinal() AbstractMemberGenerator
setFlags() AbstractMemberGenerator
setIndentation() AbstractGenerator
setInterface() AbstractMemberGenerator
setName() AbstractMemberGenerator
setOptions() AbstractGenerator
setSourceContent() AbstractGenerator
setSourceDirty() AbstractGenerator
setStatic() AbstractMemberGenerator
setVisibility() AbstractMemberGenerator

Method Details

__construct()

Parameter Name Type Description
$name string
$defaultValue \PropertyValueGenerator|string|array
$flags int

Returns:

addFlag()

Parameter Name Type Description
$flag int

Returns: \AbstractMemberGenerator

fromArray()

Generate from array

Parameter Name Type Description
$array array

Returns: \PropertyGenerator

fromReflection()

Parameter Name Type Description
$reflectionProperty \PropertyReflection

Returns: \PropertyGenerator

generate()

Returns: string

getDefaultValue()

Returns: \PropertyValueGenerator

getDocBlock()

Returns: \DocBlockGenerator|null

getIndentation()

Returns: string

getName()

Returns: string

getSourceContent()

Returns: string

getVisibility()

Returns: string

isAbstract()

Returns: bool

isConst()

Returns: bool

isFinal()

Returns: bool

isInterface()

Returns: bool

isSourceDirty()

Returns: bool

isStatic()

Returns: bool

omitDefaultValue()

Parameter Name Type Description
$omit bool

Returns: \PropertyGenerator

removeDocBlock()

Returns: void

removeFlag()

Parameter Name Type Description
$flag int

Returns: \AbstractMemberGenerator

setAbstract()

Parameter Name Type Description
$isAbstract bool

Returns: \AbstractMemberGenerator

setConst()

Parameter Name Type Description
$const bool

Returns: \PropertyGenerator

setDefaultValue()

Parameter Name Type Description
$defaultValue \PropertyValueGenerator|mixed
$defaultValueType string
$defaultValueOutputMode string

Returns: \PropertyGenerator

setDocBlock()

Parameter Name Type Description
$docBlock \DocBlockGenerator|string

Returns: \AbstractMemberGenerator

setFinal()

Parameter Name Type Description
$isFinal bool

Returns: \AbstractMemberGenerator

setFlags()

Parameter Name Type Description
$flags int|array

Returns: \AbstractMemberGenerator

setIndentation()

Parameter Name Type Description
$indentation string

Returns: \AbstractGenerator

setInterface()

Parameter Name Type Description
$isInterface bool

Returns: \AbstractMemberGenerator

setName()

Parameter Name Type Description
$name string

Returns: \AbstractMemberGenerator

setOptions()

Parameter Name Type Description
$options array|\Traversable

Returns: \AbstractGenerator

setSourceContent()

Parameter Name Type Description
$sourceContent string

Returns: \AbstractGenerator

setSourceDirty()

Parameter Name Type Description
$isSourceDirty bool

Returns: \AbstractGenerator

setStatic()

Parameter Name Type Description
$isStatic bool

Returns: \AbstractMemberGenerator

setVisibility()

Parameter Name Type Description
$visibility string

Returns: \AbstractMemberGenerator

Top