Skip to content

Commit

Permalink
Add doc-blocks (#410)
Browse files Browse the repository at this point in the history
To improve understanding of mayDependOnComponents
and shouldOnlyDependOnComponents
  • Loading branch information
hgraca committed May 8, 2024
1 parent 4530d3d commit 21bf268
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
8 changes: 7 additions & 1 deletion src/RuleBuilders/Architecture/MayDependOnComponents.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@

interface MayDependOnComponents
{
/** @return Where&Rules */
/**
* May depend on the specified components, plus itself.
*
* @param string[] $componentNames
*
* @return Where&Rules
*/
public function mayDependOnComponents(string ...$componentNames);
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@

interface ShouldOnlyDependOnComponents
{
/** @return Where&Rules */
/**
* May depend ONLY on the specified components, thus it can only depend on itself if itself is specified.
*
* @param string[] $componentNames
*
* @return Where&Rules
*/
public function shouldOnlyDependOnComponents(string ...$componentNames);
}

0 comments on commit 21bf268

Please sign in to comment.