Representation
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
Namensraum
Namensraum setzen
Namespace und Name
Prüfen ob Konstante in Elternklasse definiert ist
Ist die Konstante Teil eines Interfaces
Prüfen ob Methode in Elternklasse implementiert ist
Details
in Part at line 75
string|null
getName()
Name des Bestandteils
in Part at line 108
null
getDescription()
Beschreibung
in Part at line 119
abstract string
getToken()
Diese Methode muss von abgeleiteten Klassen überschrieben werden.
at line 52
string
getNamespace()
Namensraum
at line 63
Representation
setNamespace(string $namespace)
Namensraum setzen
at line 79
string
getQualifiedName()
Namespace und Name
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.
at line 117
static protected boolean
isInterfaceClassConstant(type $interfaces, type $key, type $value)
Ist die Konstante Teil eines Interfaces
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.
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.
at line 173
static protected ObjectMap
getConstantsFromReflection(ReflectionClass $reflection)
Untersuchen der Konstanten
at line 197
static protected ClassStructure
getParentFromReflection(ReflectionClass $reflection)
Elternklasse
at line 209
static protected ObjectMap
getPropertiesFromReflection(ReflectionClass $reflection)
Eigenschaften
at line 227
static protected Constructor
getConstructorFromReflection(ReflectionClass $reflection)
Konstruktor
at line 241
static protected ClassComment
getCommentFromReflection(ReflectionClass $reflection)
Kommentar
at line 252
static protected Destructor|null
getDestructorFromReflection(ReflectionClass $reflection)
Destruktor
at line 269
static protected ObjectMap
getMethodsFromReflection(ReflectionClass $reflection)
Methoden
at line 327
static protected ObjectMap
getTraitsReflection(ReflectionClass $reflection)
Traits
at line 400
static protected ObjectMap
getInterfacesFromReflection(ReflectionClass $reflection)
Interfaces
at line 426
static Source
getInstanceFromReflection(ReflectionClass $reflection)
Objekt erstellen
Passendes Representationsobjekt aus einem Reflection-Objekt erstellen.