UML representation of PHP trait

前端 未结 3 2091
灰色年华
灰色年华 2021-01-02 17:52

I\'m creating projects with Symfony2/Doctrine and try to implement traits. So far no problem on small tryouts, but I usually do UML class and sequence diagrams before deep i

3条回答
  •  长发绾君心
    2021-01-02 18:22

    In the earliest paper that I've seen Roles/Traits explained, they are represented in UML with a line connecting the Role/Trait to the method/function inside the class. http://scg.unibe.ch/archive/papers/Scha03aTraits.pdf

提交回复
热议问题