class Property extends Part

Eigenschaften einer Klasse

Constants

VISIBILITY_PROTECTED

geschützt

VISIBILITY_PRIVATE

private

VISIBILITY_PUBLIC

öffentlich

Properties

protected string $name from Part
protected string $description
protected mixed $default
protected boolean $defaultIsNull
protected boolean $defaultIsConstant
protected string $type
protected mixed $value
protected boolean $static
protected string $visibility
protected Comment $comment

Methods

string|null
getName()

Name des Bestandteils

from Part
setName(string $name)

Name des Bestandteils setzen

from Part
setDescription(string $description)

Beschreibung setzen

from Part
null
getDescription()

Beschreibung

from Part
string
getToken()

Token

__construct(string $name)

Neues Objekt

boolean
isStatic()

Prüft ob Statisch

setStatic(boolean $mode)

Eigenschaft ist statisch

setVisibility(string $visibility)

Sichtbarkeit

string
getVisibility()

Sichtbarkeit

setType(string $type)

Typ

string
getType()

Typ

setValue(mixed $value)

Wert setzen

mixed
getValue()

Wert

mixed
getDefault()

Defaultwert

setDefault(mixed $default, boolean $isConstant = false)

Setzt den Defaultwert

clearDefault()

Entfernt den Defaultwert

boolean
isDefaultNull()

Ist Eigenschaft null?

boolean
isDefaultConstant()

Konstant

static Property
getInstanceFromKey(string $key, string $prefix = null)

Objekt erstellen

static Property
getInstanceFromReflection(ReflectionProperty $property)

Erstellt neues Objekt aus PHP-Objekt

getComment()

Kommentar der Methode

setComment(Property $comment)

Kommentar der Methode setzen

Details

in Part at line 75
string|null getName()

Name des Bestandteils

Return Value

string|null Name

in Part at line 86
Part setName(string $name)

Name des Bestandteils setzen

Parameters

string $name Name

Return Value

Part

in Part at line 98
Part setDescription(string $description)

Beschreibung setzen

Parameters

string $description Beschreibung

Return Value

Part

in Part at line 108
null getDescription()

Beschreibung

Return Value

null Beschreibung

at line 143
string getToken()

Token

Return Value

string Token

at line 88
__construct(string $name)

Neues Objekt

Parameters

string $name Name der Eigenschaft

at line 103
boolean isStatic()

Prüft ob Statisch

Return Value

boolean Mode

at line 114
Property setStatic(boolean $mode)

Eigenschaft ist statisch

Parameters

boolean $mode Flag

Return Value

Property

at line 124
setVisibility(string $visibility)

Sichtbarkeit

Parameters

string $visibility Sichtbarkeit

at line 134
string getVisibility()

Sichtbarkeit

Return Value

string Sichtbarkeit

at line 154
Property setType(string $type)

Typ

Parameters

string $type Typ

Return Value

Property

at line 164
string getType()

Typ

Return Value

string Typ

at line 175
Property setValue(mixed $value)

Wert setzen

Parameters

mixed $value

Return Value

Property

at line 186
mixed getValue()

Wert

Return Value

mixed Wert

at line 195
mixed getDefault()

Defaultwert

Return Value

mixed Defaultwert

at line 207
Property setDefault(mixed $default, boolean $isConstant = false)

Setzt den Defaultwert

Parameters

mixed $default Defaultwert
boolean $isConstant Wert ist eine Konstante

Return Value

Property

at line 219
Property clearDefault()

Entfernt den Defaultwert

Return Value

Property

at line 231
boolean isDefaultNull()

Ist Eigenschaft null?

Return Value

boolean Null

at line 240
boolean isDefaultConstant()

Konstant

Return Value

boolean Konstant

at line 254
static Property getInstanceFromKey(string $key, string $prefix = null)

Objekt erstellen

Erstellt aus einem Schlüssel eine Eigenschaft

Parameters

string $key Schlüssel
string $prefix Prefix

Return Value

Property

at line 268
static Property getInstanceFromReflection(ReflectionProperty $property)

Erstellt neues Objekt aus PHP-Objekt

Parameters

ReflectionProperty $property PHP-Objekt

Return Value

Property

at line 303
Property getComment()

Kommentar der Methode

Return Value

Property Kommentar

at line 314
Method setComment(Property $comment)

Kommentar der Methode setzen

Parameters

Property $comment Kommentar

Return Value

Method