InterfaceStructure
class InterfaceStructure extends Representation
Export von Reflection-Objekte in Source-Code
Traits
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 | from Representation | |
protected Method> | $method | from Method | |
protected Constructor | $constructor | from Method | |
protected Destructor | $destructor | from Method | |
protected ClassComment | $comment | from Comment | |
protected Constant> | $constant | from Constant | |
protected boolean | $interfaces | from Implementation | |
protected boolean | $final | from FinalTrait |
Methods
Token
Prüfen ob Konstante in Elternklasse definiert ist
Ist die Konstante Teil eines Interfaces
Prüfen ob Methode in Elternklasse implementiert ist
Neue Klasse erstellen
Details
in Part at line 75
string|null
getName()
Name des Bestandteils
in Part at line 108
null
getDescription()
Beschreibung
at line 64
string
getToken()
Token
in Representation at line 52
string
getNamespace()
Namensraum
in Representation at line 63
Representation
setNamespace(string $namespace)
Namensraum setzen
in Representation at line 79
string
getQualifiedName()
Namespace und Name
in Representation 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.
in Representation at line 117
static protected boolean
isInterfaceClassConstant(type $interfaces, type $key, type $value)
Ist die Konstante Teil eines Interfaces
in Representation 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.
in Representation 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.
in Representation at line 173
static protected ObjectMap
getConstantsFromReflection(ReflectionClass $reflection)
Untersuchen der Konstanten
in Representation at line 197
static protected ClassStructure
getParentFromReflection(ReflectionClass $reflection)
Elternklasse
in Representation at line 209
static protected ObjectMap
getPropertiesFromReflection(ReflectionClass $reflection)
Eigenschaften
in Representation at line 227
static protected Constructor
getConstructorFromReflection(ReflectionClass $reflection)
Konstruktor
in Representation at line 241
static protected ClassComment
getCommentFromReflection(ReflectionClass $reflection)
Kommentar
in Representation at line 252
static protected Destructor|null
getDestructorFromReflection(ReflectionClass $reflection)
Destruktor
in Representation at line 269
static protected ObjectMap
getMethodsFromReflection(ReflectionClass $reflection)
Methoden
in Representation at line 327
static protected ObjectMap
getTraitsReflection(ReflectionClass $reflection)
Traits
in Representation at line 400
static protected ObjectMap
getInterfacesFromReflection(ReflectionClass $reflection)
Interfaces
at line 77
static Source
getInstanceFromReflection(ReflectionClass $reflection)
Objekt erstellen
Objekt aus einem Reflection-Objekt erstellen.
in Method at line 57
protected Representation
initMethodStrucure()
Initialisierung der Methodenstruktur
in Method at line 68
Method>
getMethods()
Methoden
in Method at line 82
Representation
setMethods(ObjectMap $methods)
Methoden setzen
Alle Methoden werden gelöscht und die übergebene Collection gesetzt.
in Method at line 94
Method>
getMethod(string $name)
Funktion holen
in Method at line 119
Representation
setMethod(Method $method)
Methode setzen
Setzt die Methode mit dem Funktionsnamen.
in Method at line 129
Constructor
getConstructor()
Gibt den gesetzten Konstruktor oder null zurück
in Method at line 139
Representation
setConstructor(Constructor $constructor = null)
in Method at line 149
Destructor
getDestructor()
Destruktor holen
in Method at line 160
Representation
setDestructor(Destructor $destructor = null)
Destruktor setzen
in Comment at line 48
protected Representation
initCommentStructure()
Initialisierung der Strukturen
in Comment at line 59
ClassComment
getComment()
Kommentar
in Comment at line 70
Representation
setComment(ClassComment $comment)
Kommentar setzen
in Constant at line 48
protected Representation
initConstantStructure()
Initialisierung der Strukturen
in Constant at line 59
ObjectMap
getConstants()
Alle Konstante
in Constant at line 70
Representation
setConstants(ObjectMap $constant)
Konstante setzen
in Implementation at line 48
protected Representation
initImplementationStructure()
Initialisierung der Strukturen
in Implementation at line 59
InterfaceStructure>
getInterfaces()
Interfaces
in Implementation at line 70
Representation
setInterfaces(ObjectMap $interfaces = null)
Interfaces setzen
in FinalTrait at line 48
boolean
isFinal()
Ist die Struktur final?
in FinalTrait at line 59
Representation
setFinal(boolean $mode)
Final
at line 48
__construct(string $name = '')
Neue Klasse erstellen