abstract class Representation extends Part

Überführung PHP-Reflection in Alvine-Reflection

Die Representaionsklasse bietet die Möglichkeit eine \ReflectionClass Instanz in eine entsprechende Alvine-Strukturdatei zu überführen.

Constants

VISIBILITY_PROTECTED

geschützt

VISIBILITY_PRIVATE

private

VISIBILITY_PUBLIC

öffentlich

Properties

protected string $name from Part
protected string $description from Part
protected string $namespace

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()

Diese Methode muss von abgeleiteten Klassen überschrieben werden.

from Part
string
getNamespace()

Namensraum

setNamespace(string $namespace)

Namensraum setzen

string
getQualifiedName()

Namespace und Name

static boolean
isParentClassConstant(ReflectionClass $reflection, string $key, string $value)

Prüfen ob Konstante in Elternklasse definiert ist

static boolean
isInterfaceClassConstant(type $interfaces, type $key, type $value)

Ist die Konstante Teil eines Interfaces

static boolean
isParentClassInterface(ReflectionClass $reflection, string $name)

Prüfen ob Methode in Elternklasse implementiert ist

static boolean
isParentClassTrait(ReflectionClass $reflection, string $name)

Prüfung

static ObjectMap
getConstantsFromReflection(ReflectionClass $reflection)

Untersuchen der Konstanten

static ClassStructure
getParentFromReflection(ReflectionClass $reflection)

Elternklasse

static ObjectMap
getPropertiesFromReflection(ReflectionClass $reflection)

Eigenschaften

static Constructor
static ClassComment
getCommentFromReflection(ReflectionClass $reflection)

Kommentar

static Destructor|null
static ObjectMap
static ObjectMap
getTraitsReflection(ReflectionClass $reflection)

Traits

static ObjectMap
static Source
getInstanceFromReflection(ReflectionClass $reflection)

Objekt erstellen

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

in Part at line 119
abstract string getToken()

Diese Methode muss von abgeleiteten Klassen überschrieben werden.

Return Value

string Token

at line 52
string getNamespace()

Namensraum

Return Value

string Namensraum

at line 63
Representation setNamespace(string $namespace)

Namensraum setzen

Parameters

string $namespace Neuer Namensraum

Return Value

Representation Dieses Objekt

at line 79
string getQualifiedName()

Namespace und Name

Return Value

string Name inklusive Namespace

at line 102
static protected boolean isParentClassConstant(ReflectionClass $reflection, string $key, string $value)

Prüfen ob Konstante in Elternklasse definiert ist

Die Methode prüft, ob eine Konstante bereits in einer Elternklasse mit dem gleichen Wert definiert wurde. Dadurch kann man erkennen, ob die Konstante nochmal definiert werden muss.

Parameters

ReflectionClass $reflection Reflektion
string $key Schlüssel
string $value Wert

Return Value

boolean Ergebnis

at line 117
static protected boolean isInterfaceClassConstant(type $interfaces, type $key, type $value)

Ist die Konstante Teil eines Interfaces

Parameters

type $interfaces
type $key
type $value

Return Value

boolean

at line 140
static protected boolean isParentClassInterface(ReflectionClass $reflection, string $name)

Prüfen ob Methode in Elternklasse implementiert ist

Diese Methode prüft, ob das Interface in einer Elternklasse implementiert wurde oder aber, ob das Interface in der aktuellen Klasse implementiert wurde.

Parameters

ReflectionClass $reflection Objekt
string $name Name

Return Value

boolean Ergebnis

at line 159
static protected boolean isParentClassTrait(ReflectionClass $reflection, string $name)

Prüfung

Diese Methode prüft, ob das Trait in einer Elternklasse implementiert wurde oder aber, ob das Trait in der aktuellen Klasse implementiert wurde.

Parameters

ReflectionClass $reflection Objekt
string $name Name

Return Value

boolean Ergebnis

at line 173
static protected ObjectMap getConstantsFromReflection(ReflectionClass $reflection)

Untersuchen der Konstanten

Parameters

ReflectionClass $reflection Objekt

Return Value

ObjectMap Konstante

at line 197
static protected ClassStructure getParentFromReflection(ReflectionClass $reflection)

Elternklasse

Parameters

ReflectionClass $reflection Objekt

Return Value

ClassStructure

at line 209
static protected ObjectMap getPropertiesFromReflection(ReflectionClass $reflection)

Eigenschaften

Parameters

ReflectionClass $reflection Objekt

Return Value

ObjectMap Eigenschaften

at line 227
static protected Constructor getConstructorFromReflection(ReflectionClass $reflection)

Konstruktor

Parameters

ReflectionClass $reflection Objekt

Return Value

Constructor Konstruktor

at line 241
static protected ClassComment getCommentFromReflection(ReflectionClass $reflection)

Kommentar

Parameters

ReflectionClass $reflection Objekt

Return Value

ClassComment

at line 252
static protected Destructor|null getDestructorFromReflection(ReflectionClass $reflection)

Destruktor

Parameters

ReflectionClass $reflection Objekt

Return Value

Destructor|null Destruktor

at line 269
static protected ObjectMap getMethodsFromReflection(ReflectionClass $reflection)

Methoden

Parameters

ReflectionClass $reflection Objekt

Return Value

ObjectMap Methoden

at line 327
static protected ObjectMap getTraitsReflection(ReflectionClass $reflection)

Traits

Parameters

ReflectionClass $reflection Objekt

Return Value

ObjectMap Traits

at line 400
static protected ObjectMap getInterfacesFromReflection(ReflectionClass $reflection)

Interfaces

Parameters

ReflectionClass $reflection Objekt

Return Value

ObjectMap Interfaces

at line 426
static Source getInstanceFromReflection(ReflectionClass $reflection)

Objekt erstellen

Passendes Representationsobjekt aus einem Reflection-Objekt erstellen.

Parameters

ReflectionClass $reflection

Return Value

Source