什么是 0, 1, . , * 在此 Yii2 文档图像中
What are 0, 1, . , * in this Yii2 documentation image
来自 Yii 的文档
http://www.yiiframework.com/doc-2.0/guide-start-workflow.html#application-structure
这是什么意思?
这是UML class diagram。而 0..* 表示主要成员可能具有从 0 到无穷大 children 的关系。例如"application"可能有0个或多个"modules",但"entry script"只能有一个"application"
这些是 UML 图中不同类型的多重性。
Multiplicity Option Cardinality
0..0 0 Collection must be empty
0..1 No instances or one instance
1..1 1 Exactly one instance
0..* * Zero or more instances
1..* At least one instance
5..5 5 Exactly 5 instances
m..n At least m but no more than n instances
查看更多信息here。
来自 Yii 的文档
http://www.yiiframework.com/doc-2.0/guide-start-workflow.html#application-structure
这是什么意思?
这是UML class diagram。而 0..* 表示主要成员可能具有从 0 到无穷大 children 的关系。例如"application"可能有0个或多个"modules",但"entry script"只能有一个"application"
这些是 UML 图中不同类型的多重性。
Multiplicity Option Cardinality
0..0 0 Collection must be empty
0..1 No instances or one instance
1..1 1 Exactly one instance
0..* * Zero or more instances
1..* At least one instance
5..5 5 Exactly 5 instances
m..n At least m but no more than n instances
查看更多信息here。