Skip to content

Commit 947a92d

Browse files
committed
Changed package notation in class diagram from square to default notation.
1 parent fc4f0e2 commit 947a92d

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ To execute `php-class-diagram` will print PlantUML script.
123123
```bash
124124
$ vendor/bin/php-class-diagram test/fixtures/no-namespace
125125
@startuml class-diagram
126-
package product as product <<Rectangle>> {
126+
package product as product {
127127
class product.Price {
128128
-price : int
129129
}

dogfood-model.png

1.38 KB
Loading

dogfood.png

1.72 KB
Loading

src/DiagramElement/Package.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public function dump($level = 0): array {
6565
$lines = [];
6666
if ($this->name !== 'ROOT') {
6767
$lines[] = sprintf(
68-
'%spackage %s as %s <<Rectangle>> {',
68+
'%spackage %s as %s {',
6969
$indent,
7070
$this->name,
7171
$this->getLogicalName()

test/PackageTest.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ public function testDump(): void {
308308

309309
$expected =<<<EOS
310310
@startuml class-diagram
311-
package product as product <<Rectangle>> {
311+
package product as product {
312312
class product.Product
313313
class product.Price
314314
class product.Name
@@ -333,10 +333,10 @@ public function testDump2(): void {
333333
$rel = new Relation($entries, $options);
334334
$expected =<<<EOS
335335
@startuml class-diagram
336-
package product as product <<Rectangle>> {
336+
package product as product {
337337
class product.Product
338338
class product.Price
339-
package utility as product.utility <<Rectangle>> {
339+
package utility as product.utility {
340340
class product.Name
341341
}
342342
}
@@ -359,7 +359,7 @@ public function testDump3(): void {
359359
$rel = new Relation($entries, $options);
360360
$expected =<<<EOS
361361
@startuml class-diagram
362-
package product as product <<Rectangle>> {
362+
package product as product {
363363
interface product.Interface_
364364
}
365365
@enduml
@@ -378,7 +378,7 @@ public function testDump4(): void {
378378
$rel = new Relation($entries, $options);
379379
$expected =<<<EOS
380380
@startuml class-diagram
381-
package product as product <<Rectangle>> {
381+
package product as product {
382382
interface product.Interface_ {
383383
-name : string
384384
}
@@ -398,7 +398,7 @@ public function testDump5(): void {
398398
$rel = new Relation($entries, $options);
399399
$expected =<<<EOS
400400
@startuml class-diagram
401-
package product as product <<Rectangle>> {
401+
package product as product {
402402
interface product.Interface_ {
403403
-method1(param1)
404404
}
@@ -419,7 +419,7 @@ public function testDump6(): void {
419419
$rel = new Relation($entries, $options);
420420
$expected =<<<EOS
421421
@startuml class-diagram
422-
package product as product <<Rectangle>> {
422+
package product as product {
423423
interface product.Interface_ {
424424
-method1(param1)
425425
}
@@ -446,7 +446,7 @@ public function testDump7(): void {
446446

447447
$expected =<<<EOS
448448
@startuml class-diagram
449-
package product as product <<Rectangle>> {
449+
package product as product {
450450
class product.Product
451451
class product.Price
452452
class product.Name

0 commit comments

Comments
 (0)