开发者

Show composition/aggregation/association relations between objects in Visual Paradigm UML diagrams?

开发者 https://www.devze.com 2022-12-28 14:35 出处:网络
I have Netbeans installed with Visual Paradigm plugin. I have converted my php code into UML diagrams (modeling -> instant reverse). I can see relations (drawn lines) between superclass and subclasse

I have Netbeans installed with Visual Paradigm plugin.

I have converted my php code into UML diagrams (modeling -> instant reverse). I can see relations (drawn lines) between superclass and subclasses. However, i cannot see relations between objects inside objects (compos开发者_JS百科ition/aggregation/association)?

The code looks like:

class Thread {
    private $tag = '';

    public function __construct($tagObject) {
         $this->tag = $tagObject;
    }
}

I know its possible using Java cause i've read about it.

Im using PHP, is this still possible?


I haven't used that plugin, but you probably need to add type hinting for it to work.

public function __construct(Tag $tagObject) { /*...*/ }
0

精彩评论

暂无评论...
验证码 换一张
取 消