Add DependencyConnector to handle class dependencies in diagrams #10
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Pull Request Overview
This pull request introduces several significant updates and new features to the class diagram rendering system. Below are the key changes:
New Features
DependencyConnector Implementation:
DependencyConnector
class to handle class dependencies in diagrams.Node Class Enhancements:
Node
class to support dependencies.depend(Node $node)
to manage dependencies.relationships()
method to include dependencies while filtering out properties, extensions, and implementations.Node Parsing Improvements:
DependencyConnector
into theNodeParser
class to automatically parse and detect dependencies.Relationship Rendering:
Dependency
relationship class to render dependencies in the diagram.Tests and Examples
Class Diagram Tests:
Example Class:
SomeClassE
as an example class to demonstrate dependency relationships in tests.Dependency Updates
Files Affected
src/ClassDiagramRenderer/Node/Connector/DependencyConnector.php
: New file for handling dependencies.src/ClassDiagramRenderer/Node/Node.php
: Enhanced to support dependencies.src/ClassDiagramRenderer/Node/NodeParser.php
: Updated to parse dependencies.src/ClassDiagramRenderer/Node/Nodes.php
: Modified to retrieve all nodes.src/ClassDiagramRenderer/Node/Relationship/Dependency.php
: New file for rendering dependencies.tests/ClassDiagram/ClassDiagramBuilderTest.php
: Updated and added tests for dependency relationships.tests/ClassDiagram/ClassDiagramTest.php
: Updated and added tests for dependency relationships.tests/ClassDiagram/data/SomeClassE.php
: New example class demonstrating dependency relationships.