PackageStructure
class PackageStructure extends Group
Package
Zusammenfassung mehrerer Strukturen zu einem Package. Im Unterschied zu Namespace dürfen Klassen innerhalb eines Packages nur einmal vorkommen. Die Klasse A kann somit nicht in Package X und Y gleichzeitig vorkommen.
$package = new \Alvine\Documentation\PlantUML\Diagram\Classes\Structure\PackageStructure('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\PackageStructure('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_PACKAGE |
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 = self::RECTACLE)
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 = self::RECTACLE)
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