mediatekformation

InitializerProperty extends PropertyGenerator
in package

Property that contains the initializer for a lazy object

Table of Contents

FLAG_ABSTRACT  = 0x1
FLAG_CONSTANT  = 0x8
FLAG_FINAL  = 0x2
FLAG_INTERFACE  = 0x8
FLAG_PRIVATE  = 0x40
FLAG_PROTECTED  = 0x20
FLAG_PUBLIC  = 0x10
FLAG_STATIC  = 0x4
LINE_FEED  = "\n"
Line feed to use in place of EOL
VISIBILITY_PRIVATE  = 'private'
VISIBILITY_PROTECTED  = 'protected'
VISIBILITY_PUBLIC  = 'public'
$defaultValue  : PropertyValueGenerator
$docBlock  : DocBlockGenerator|null
$flags  : int
$indentation  : int|string
$isConst  : bool
$isSourceDirty  : bool
$name  : string
$sourceContent  : string
$omitDefaultValue  : bool
__construct()  : mixed
Constructor
addFlag()  : AbstractMemberGenerator
fromArray()  : PropertyGenerator
Generate from array
fromReflection()  : PropertyGenerator
generate()  : string
getDefaultValue()  : PropertyValueGenerator
getDocBlock()  : DocBlockGenerator|null
getIndentation()  : string
getName()  : string
getSourceContent()  : string
getVisibility()  : string
isAbstract()  : bool
isConst()  : bool
isFinal()  : bool
isInterface()  : bool
isSourceDirty()  : bool
isStatic()  : bool
omitDefaultValue()  : PropertyGenerator
removeDocBlock()  : void
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

Constants

Properties

Methods

fromArray()

Generate from array

public static fromArray(array<string|int, mixed> $array) : PropertyGenerator
Parameters
$array : array<string|int, mixed>
Tags
configkey

name string [required] Class Name

configkey

const bool

configkey

defaultvalue null|bool|string|int|float|array|ValueGenerator

configkey

flags int

configkey

abstract bool

configkey

final bool

configkey

static bool

configkey

visibility string

configkey

omitdefaultvalue bool

throws
InvalidArgumentException
Return values
PropertyGenerator

getSourceContent()

public getSourceContent() : string
Return values
string

setDefaultValue()

public setDefaultValue(PropertyValueGenerator|mixed $defaultValue[, string $defaultValueType = PropertyValueGenerator::TYPE_AUTO ][, string $defaultValueOutputMode = PropertyValueGenerator::OUTPUT_MULTIPLE_LINE ]) : PropertyGenerator
Parameters
$defaultValue : PropertyValueGenerator|mixed
$defaultValueType : string = PropertyValueGenerator::TYPE_AUTO
$defaultValueOutputMode : string = PropertyValueGenerator::OUTPUT_MULTIPLE_LINE
Return values
PropertyGenerator

Search results