NamespaceStructure
class NamespaceStructure extends Group
Namespace
Zusammenfassung mehrerer Strukturen zu einem Namespace. Anders als bei Packages setzt sich der innerhalb eines Namespace definierte Namen aus dem Namespace und den Klassennamen zusammen.
$package = new \Alvine\Documentation\PlantUML\Diagram\Classes\Structure\Package('myPackage');
$classA = new \Alvine\Documentation\PlantUML\Diagram\Classes\Structure\ClassStructure('A', true);
$package->add($classA);
$classB = new \Alvine\Documentation\PlantUML\Diagram\Classes\Structure\ClassStructure('B', true);
$package->add($classB);
// Sub-Package
$package2 = new \Alvine\Documentation\PlantUML\Diagram\Classes\Structure\Package('subPackage');
$classAA = new \Alvine\Documentation\PlantUML\Diagram\Classes\Structure\ClassStructure('AA', true);
$package2->add($classAA);
// Zusammenstellen
$package->add($package2);
$diagram->add($package);
echo (string) $diagram;
Constants
STRUCTURE_START |
Öffnene Struktur |
STRUCTURE_END |
Schliessende Struktur |
MODIFIER_STATIC |
Statisch |
MODIFIER_ABSTRACT |
Abstrakt |
NOTATION_NOTE_START |
Notiz |
NOTATION_NOTE_END |
Ende der Notiz |
RECTACLE |
Aussehen Rect |
FOLDER |
Aussehen Folder |
FRAME |
Aussehen Frame |
CLOUD |
Aussehen Cloud |
DATABASE |
Aussehen Database |
TYPE_NAMESPACE |
Package |
Properties
protected string> | $structure | from Structure | |
protected string | $name | from Structure | |
protected | $groupType | from Group | |
protected Structure> | $sub | from Group | |
protected string | $style | from Group |
Methods
__construct(string $name, $style = null)
Neues Objekt erstellen
from Group
static static
getInstanceFromRepresentation(string $base, Representation $representation)
No description
from Group
static TraitStructure
getStructureInstanceFromRepresentation(type $name, Representation $representation)
No description
from Group
static NamespaceStructure
getInstanceFromRepresentationCollection(type $name, Collection $collection)
No description
from Group
Details
at line 74
__construct(string $name, $style = null)
Neues Objekt erstellen
in Group at line 113
string
getStructure()
plantUML Struktur
in Structure at line 108
string
__toString()
plantUML Struktur
in Structure at line 121
string
getName()
Name der Struktur
in Group at line 100
PackageStructure
add(Structure $structure)
Fügt eine Struktur (Klasse, Interface, Trait hinzu