Conditions | 3 |
Paths | 2 |
Total Lines | 15 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
18 | public function __invoke(ReflectionClass $fromClass, ReflectionClass $toClass) : Changes |
||
19 | { |
||
20 | if (! $this->isInternalDocComment($fromClass->getDocComment()) |
||
21 | && $this->isInternalDocComment($toClass->getDocComment()) |
||
22 | ) { |
||
23 | return Changes::fromList(Change::changed( |
||
24 | sprintf( |
||
25 | '%s was marked "@internal"', |
||
26 | $fromClass->getName() |
||
27 | ), |
||
28 | true |
||
29 | )); |
||
30 | } |
||
31 | |||
32 | return Changes::empty(); |
||
33 | } |
||
40 |