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;

Alvine UML-Diagramm


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

string
getStructure()

plantUML Struktur

from Group
string
__toString()

plantUML Struktur

from Structure
string
getName()

Name der Struktur

from Structure
add(Structure $structure)

Fügt eine Struktur (Klasse, Interface, Trait hinzu

from Group
static static
getInstanceFromRepresentation(string $base, Representation $representation)

No description

from Group
static TraitStructure
getStructureInstanceFromRepresentation(type $name, Representation $representation)

No description

from Group
getInstanceFromRepresentationCollection(type $name, Collection $collection)

No description

from Group
static type
initImplementations(type $group, ClassStructure $structure)

No description

from Group
static type
initExtensions(type $group, type $structure)

No description

from Group

Details

at line 74
__construct(string $name, $style = self::RECTACLE)

Neues Objekt erstellen

Parameters

string $name Name der Struktur
$style

in Group at line 113
string getStructure()

plantUML Struktur

Return Value

string Zeichenkette

in Structure at line 108
string __toString()

plantUML Struktur

Return Value

string Zeichenkette

in Structure at line 121
string getName()

Name der Struktur

Return Value

string Name

in Group at line 100
PackageStructure add(Structure $structure)

Fügt eine Struktur (Klasse, Interface, Trait hinzu

Parameters

Structure $structure Struktur

Return Value

PackageStructure

in Group at line 127
static static getInstanceFromRepresentation(string $base, Representation $representation)

Parameters

string $base
Representation $representation

Return Value

static

in Group at line 171
static protected TraitStructure getStructureInstanceFromRepresentation(type $name, Representation $representation)

Parameters

type $name
Representation $representation

Return Value

TraitStructure \Alvine\Documentation\PlantUML\Diagram\Classes\Structure\InterfaceStructure| \Alvine\Documentation\PlantUML\Diagram\Classes\Structure\ClassStructure

in Group at line 188
static NamespaceStructure getInstanceFromRepresentationCollection(type $name, Collection $collection)

Parameters

type $name
Collection $collection

Return Value

NamespaceStructure

in Group at line 214
static protected type initImplementations(type $group, ClassStructure $structure)

Parameters

type $group
ClassStructure $structure

Return Value

type

in Group at line 241
static protected type initExtensions(type $group, type $structure)

Parameters

type $group
type $structure

Return Value

type