ClassStructure
class ClassStructure extends Representation
Diese Klasse bildet die Struktur einer Klasse ab und dient als Sammelpunkt für alle Informationen einer Klasse.
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 Constant> | $constant | from Constant | |
protected Property> | $classProperty | from Property | |
protected boolean | $final | from FinalTrait | |
protected ObjectMap | $traits | from UseTrait | |
protected boolean | $abstract | from AbstractTrait | |
protected boolean | $interfaces | from Implementation | |
protected ClassStructure | $parent | from Extend | |
protected ClassComment | $comment | from Comment |
Methods
Token der Klasse
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 117
string
getToken()
Token der Klasse
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 88
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 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 Property at line 51
protected Representation
initPropertyStructure()
Initialisierung der Strukturen
in Property at line 62
Property>
getProperties()
Alle Eigenschaften
in Property at line 73
Representation
setProperties(ObjectMap $property)
Eigenschaften setzen
in Property at line 86
Representation
setProperty(Property $property)
eigenschaft setzen
in Property at line 98
boolean
propertyExists(Property $property)
Prüfen ob die Eigenschaft in der Struktur vorliegt
in FinalTrait at line 48
boolean
isFinal()
Ist die Struktur final?
in FinalTrait at line 59
Representation
setFinal(boolean $mode)
Final
in UseTrait at line 48
protected Representation
initTraitStructure()
Initialisierung der Strukturen
in UseTrait at line 59
ObjectMap
getTraits()
Alle Traits holen
in UseTrait at line 70
type
setTraits(ObjectMap $traits = null)
Traits setzen
in AbstractTrait at line 49
boolean
isAbstract()
Ist die Struktur abstrakt?
in AbstractTrait at line 63
Representation
setAbstract(boolean $mode)
Abstraktion
Setzt den Schalter ob die Struktur abstrakt ist oder nicht.
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 Extend at line 48
protected Representation
initExtendStructure()
Initialisierung der Strukturen
in Extend at line 58
null|Representation
getParent()
Eltern
in Extend at line 69
Representation
setParent(ClassStructure $parent = null)
Eltern
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
at line 54
__construct(string $name)
Neue Klasse erstellen