Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How phUML handles arrays - UML syntax #31

Open
cth027 opened this issue Nov 26, 2023 · 0 comments
Open

How phUML handles arrays - UML syntax #31

cth027 opened this issue Nov 26, 2023 · 0 comments

Comments

@cth027
Copy link

cth027 commented Nov 26, 2023

phUML tries to use the more specific type of the classes stored in an array, as explained here. The notation ClassDefinition[] is however not valid UML and ClassDefinition[*] should be preferred according to UML syntax for multiplicity (see UML 2.5.1 specifications on the OMG website, chapter 7.5.4.1).
Likewise, if no such specific class is found, phUML seems to use array which hides somewhat the multiplicity in the UML diagram. Using mixed[*] , in view of PHP type documentation, would allow to remain compliant with PHP semantics (freedom to put anything in an array) and UML.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant