I started playing with doxygen to create documentation from my PHP code. I notice that there are two diagrams in the generated outputs - inheritance and collaboration. I know about inheritance, but the collaboration has interested me since reading the manual:
If the COLLABORATION_GRAPH and HAVE_DOT labels are set to YES, then doxygen will generate a graph for each documented class showing direct and indirect implementations (inheritance, containment and class). Class with other class documents.
The impression I get from this description is that the composite relationship should be represented by a collaboration diagram, but it is always just identical to inheritance.
Is there something I can do to hint at Doxygen that I would like to appear in this diagram? Does this just not work with PHP?
Maybe due to the fact that the classes you use for this are not so many to show EXCEPT inheritance in the collaboration diagram?
Have you tried this in difficult classes? (classes containing member objects of other classes)
In these cases (at least with C ++), he generated complex color-coded diagrams representing various relationships.
I have never tried to create collaboration diagrams with doxygen, but I believe that you should document your code as follows:
class B {} class A { /** * @var B */ private $b; }
- docblock, , , $b B , , B .
try following http://www.symfony-project.org/plugins/sfDoxygenPlugin
Source: https://habr.com/ru/post/1775797/More articles:onTouchEvent, how to get view under your finger - androidUsing Riak Erlang Client Library in Nitrogen - erlangPort below x86 for mips32 - cHow to get a vertical gradient background to work in all browsers? - jquerySynchronizing a randomly deleted local SVN folder - svnline that calls the odfWeave-generated odt file, which is considered damaged - rSpring 3 samples - javaThere is no user menu on the search page - searchWhat does this mean - javascriptDelphi Form Minimizes Problem - delphiAll Articles