| Total Complexity | 4 | 
| Total Lines | 22 | 
| Duplicated Lines | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php  | 
            ||
| 16 | final class ClassBecameInternal implements ClassBased  | 
            ||
| 17 | { | 
            ||
| 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 | }  | 
            ||
| 34 | |||
| 35 | private function isInternalDocComment(string $comment) : bool  | 
            ||
| 38 | }  | 
            ||
| 39 | }  | 
            ||
| 40 |