Documentation

AdapterProperty extends PropertyGenerator
in package

Property that contains the remote object adapter

Table of Contents

Constants

FLAG_ABSTRACT  = 0x1
FLAG_CONSTANT  = 0x8
FLAG_FINAL  = 0x2
FLAG_INTERFACE  = 0x8
FLAG_PRIVATE  = 0x40
FLAG_PROTECTED  = 0x20
FLAG_PUBLIC  = 0x10
FLAG_READONLY  = 0x80
FLAG_STATIC  = 0x4
LINE_FEED  = "\n"
Line feed to use in place of EOL
VISIBILITY_PRIVATE  = 'private'
VISIBILITY_PROTECTED  = 'protected'
VISIBILITY_PUBLIC  = 'public'

Properties

$defaultValue  : PropertyValueGenerator|null
$docBlock  : DocBlockGenerator|null
$flags  : int
$indentation  : string
$isConst  : bool
$isSourceDirty  : bool
$name  : string
$sourceContent  : string|null
TODO: Type should be changed to "string" in the next major version. Nullable for BC
$type  : TypeGenerator|null
$omitDefaultValue  : bool

Methods

__construct()  : mixed
Constructor
addFlag()  : AbstractMemberGenerator
fromArray()  : static
Generate from array
fromReflection()  : static
generate()  : string
getDefaultValue()  : PropertyValueGenerator|null
getDocBlock()  : DocBlockGenerator|null
getIndentation()  : string
getName()  : string
getSourceContent()  : string|null
getType()  : TypeGenerator|null
getVisibility()  : mixed
isAbstract()  : bool
isConst()  : bool
isFinal()  : bool
isInterface()  : bool
isReadonly()  : bool
isSourceDirty()  : bool
isStatic()  : bool
omitDefaultValue()  : PropertyGenerator
removeDocBlock()  : void
removeFlag()  : AbstractMemberGenerator
setAbstract()  : AbstractMemberGenerator
setConst()  : PropertyGenerator
setDefaultValue()  : static
setDocBlock()  : AbstractMemberGenerator
setFinal()  : AbstractMemberGenerator
setFlags()  : AbstractMemberGenerator
setIndentation()  : AbstractGenerator
setInterface()  : AbstractMemberGenerator
setName()  : AbstractMemberGenerator
setOptions()  : AbstractGenerator
setReadonly()  : self
setSourceContent()  : AbstractGenerator
setSourceDirty()  : AbstractGenerator
setStatic()  : AbstractMemberGenerator
setType()  : void
setVisibility()  : AbstractMemberGenerator

Constants

Properties

$sourceContent

TODO: Type should be changed to "string" in the next major version. Nullable for BC

protected string|null $sourceContent = null

Methods

fromArray()

Generate from array

public static fromArray(array<string|int, mixed> $array) : static
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

configkey

readonly bool

configkey

type null|TypeGenerator

throws
InvalidArgumentException
Return values
static

getSourceContent()

public getSourceContent() : string|null
Return values
string|null

setDefaultValue()

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

setReadonly()

public setReadonly(bool $readonly) : self
Parameters
$readonly : bool
Return values
self

        
On this page

Search results