Skip to content

Commit 21bf268

Browse files
authored
Add doc-blocks (#410)
To improve understanding of mayDependOnComponents and shouldOnlyDependOnComponents
1 parent 4530d3d commit 21bf268

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

src/RuleBuilders/Architecture/MayDependOnComponents.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@
55

66
interface MayDependOnComponents
77
{
8-
/** @return Where&Rules */
8+
/**
9+
* May depend on the specified components, plus itself.
10+
*
11+
* @param string[] $componentNames
12+
*
13+
* @return Where&Rules
14+
*/
915
public function mayDependOnComponents(string ...$componentNames);
1016
}

src/RuleBuilders/Architecture/ShouldOnlyDependOnComponents.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@
55

66
interface ShouldOnlyDependOnComponents
77
{
8-
/** @return Where&Rules */
8+
/**
9+
* May depend ONLY on the specified components, thus it can only depend on itself if itself is specified.
10+
*
11+
* @param string[] $componentNames
12+
*
13+
* @return Where&Rules
14+
*/
915
public function shouldOnlyDependOnComponents(string ...$componentNames);
1016
}

0 commit comments

Comments
 (0)