Skip to content

Commit 29e7c06

Browse files
committed
update division diagram description in README.
1 parent d7a76ad commit 29e7c06

File tree

1 file changed

+56
-0
lines changed

1 file changed

+56
-0
lines changed

README.md

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,62 @@ If it finds packages that depend on each other, it will warn you with a thick re
214214
If you are using the Enum added in PHP8.1, you can output the division diagram.
215215
Visualizing the divisions used in the program can be useful for research and design.
216216
217+
```bash
218+
$ bin/php-class-diagram --division-diagram test/fixtures/enum/
219+
@startuml division-diagram
220+
card Suit #ccffcc [
221+
Suit
222+
<b>スート</b>
223+
====
224+
Hearts
225+
<b>ハート</b>
226+
----
227+
Diamonds
228+
<b>ダイヤ</b>
229+
----
230+
Clubs
231+
<b>クローバー</b>
232+
----
233+
Spades
234+
<b>スペード</b>
235+
]
236+
package Sub as Sub {
237+
card Status #ffcccc [
238+
Status
239+
<b>ゲームのステータス</b>
240+
====
241+
Player
242+
<b>プレイヤーのターン</b>
243+
----
244+
Computer
245+
<b>コンピュータのターン</b>
246+
----
247+
GameSet
248+
<b>ゲーム終了</b>
249+
]
250+
card MyExceptionCase #ccccff [
251+
MyExceptionCase
252+
====
253+
InvalidMethod
254+
----
255+
InvalidProperty
256+
----
257+
Timeout
258+
]
259+
card Size #ccffff [
260+
Size
261+
====
262+
Small
263+
----
264+
Medium
265+
----
266+
Large
267+
]
268+
}
269+
@enduml
270+
```
271+
272+
217273
![PlantUML output image.](output-division.png)
218274

219275
## Development

0 commit comments

Comments
 (0)