Skip to content

Commit ccb4f0f

Browse files
committed
Add the generated diagram
1 parent 5a25712 commit ccb4f0f

File tree

2 files changed

+133
-1
lines changed

2 files changed

+133
-1
lines changed

class-diagram.md

Lines changed: 131 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,131 @@
1+
```mermaid
2+
classDiagram
3+
class Renderable {
4+
<<interface>>
5+
}
6+
class DeclarationBlock {
7+
}
8+
class RuleSet {
9+
<<abstruct>>
10+
}
11+
class AtRuleSet {
12+
}
13+
class KeyframeSelector {
14+
}
15+
class AtRule {
16+
<<interface>>
17+
}
18+
class Charset {
19+
}
20+
class Import {
21+
}
22+
class Selector {
23+
}
24+
class CSSNamespace {
25+
}
26+
class Settings {
27+
}
28+
class Rule {
29+
}
30+
class Parser {
31+
}
32+
class OutputFormatter {
33+
}
34+
class OutputFormat {
35+
}
36+
class OutputException {
37+
}
38+
class UnexpectedEOFException {
39+
}
40+
class SourceException {
41+
}
42+
class UnexpectedTokenException {
43+
}
44+
class ParserState {
45+
}
46+
class Anchor {
47+
}
48+
class CSSBlockList {
49+
<<abstruct>>
50+
}
51+
class Document {
52+
}
53+
class CSSList {
54+
<<abstruct>>
55+
}
56+
class KeyFrame {
57+
}
58+
class AtRuleBlockList {
59+
}
60+
class Color {
61+
}
62+
class URL {
63+
}
64+
class CalcRuleValueList {
65+
}
66+
class ValueList {
67+
<<abstruct>>
68+
}
69+
class CalcFunction {
70+
}
71+
class LineName {
72+
}
73+
class Value {
74+
<<abstruct>>
75+
}
76+
class Size {
77+
}
78+
class CSSString {
79+
}
80+
class PrimitiveValue {
81+
<<abstruct>>
82+
}
83+
class CSSFunction {
84+
}
85+
class RuleValueList {
86+
}
87+
class Commentable {
88+
<<interface>>
89+
}
90+
class Comment {
91+
}
92+
93+
RuleSet <|-- DeclarationBlock: inheritance
94+
Renderable <|.. RuleSet: realization
95+
Commentable <|.. RuleSet: realization
96+
RuleSet <|-- AtRuleSet: inheritance
97+
AtRule <|.. AtRuleSet: realization
98+
Selector <|-- KeyframeSelector: inheritance
99+
Renderable <|-- AtRule: inheritance
100+
Commentable <|-- AtRule: inheritance
101+
AtRule <|.. Charset: realization
102+
AtRule <|.. Import: realization
103+
AtRule <|.. CSSNamespace: realization
104+
Renderable <|.. Rule: realization
105+
Commentable <|.. Rule: realization
106+
SourceException <|-- OutputException: inheritance
107+
UnexpectedTokenException <|-- UnexpectedEOFException: inheritance
108+
Exception <|-- SourceException: inheritance
109+
SourceException <|-- UnexpectedTokenException: inheritance
110+
CSSList <|-- CSSBlockList: inheritance
111+
CSSBlockList <|-- Document: inheritance
112+
Renderable <|.. CSSList: realization
113+
Commentable <|.. CSSList: realization
114+
CSSList <|-- KeyFrame: inheritance
115+
AtRule <|.. KeyFrame: realization
116+
CSSBlockList <|-- AtRuleBlockList: inheritance
117+
AtRule <|.. AtRuleBlockList: realization
118+
CSSFunction <|-- Color: inheritance
119+
PrimitiveValue <|-- URL: inheritance
120+
RuleValueList <|-- CalcRuleValueList: inheritance
121+
Value <|-- ValueList: inheritance
122+
CSSFunction <|-- CalcFunction: inheritance
123+
ValueList <|-- LineName: inheritance
124+
Renderable <|.. Value: realization
125+
PrimitiveValue <|-- Size: inheritance
126+
PrimitiveValue <|-- CSSString: inheritance
127+
Value <|-- PrimitiveValue: inheritance
128+
ValueList <|-- CSSFunction: inheritance
129+
ValueList <|-- RuleValueList: inheritance
130+
Renderable <|.. Comment: realization
131+
```

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@
3333
"phpstan/phpstan": "^1.11.11",
3434
"phpstan/phpstan-phpunit": "^1.4.0",
3535
"phpunit/phpunit": "^8.5.38",
36-
"rector/rector": "^1.2.4"
36+
"rector/rector": "^1.2.4",
37+
"tasuku43/mermaid-class-diagram": "^0.1.0"
3738
},
3839
"suggest": {
3940
"ext-mbstring": "for parsing UTF-8 CSS"

0 commit comments

Comments
 (0)