Skip to content

Commit 3a97332

Browse files
committed
Added a division diagram to the output when the --dig-diagram option is specified.
1 parent 29e7c06 commit 3a97332

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# CHANGELOG
22

3+
### Features
4+
5+
* Added a division diagram to the output when the --dig-diagram option is specified.
6+
37
## v0.5.0 (2023-03-12)
48

59
### Features

bin/php-class-diagram

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ OPTIONS
3939
--class-diagram output class diagram script. (default)
4040
--package-diagram output package diagram script.
4141
--division-diagram output division diagram script.
42-
--jig-diagram output class diagram and package diagram script.
42+
--jig-diagram output class diagram and package diagram and division diagram script.
4343
--enable-class-properties describe properties in class diagram. (default)
4444
--disable-class-properties not describe properties in class diagram.
4545
--enable-class-methods describe methods in class diagram. (default)

src/Main.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ public function __construct(string $directory, Options $options)
4747
case OPTIONS::DIAGRAM_JIG:
4848
echo implode("\r\n", $relation->dump()) . "\r\n";
4949
echo implode("\r\n", $relation->dumpPackages()) . "\r\n";
50+
echo implode("\r\n", $relation->dumpDivisions()) . "\r\n";
5051
break;
5152
case OPTIONS::DIAGRAM_DIVSION:
5253
echo implode("\r\n", $relation->dumpDivisions()) . "\r\n";

0 commit comments

Comments
 (0)