1

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 (composition/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?

never_had_a_name
  • 90,630
  • 105
  • 267
  • 383

1 Answers1

0

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

public function __construct(Tag $tagObject) { /*...*/ }
HappyDeveloper
  • 12,480
  • 22
  • 82
  • 117