Conditions | 3 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
19 | public function __invoke(ReflectionClass $fromClass, ReflectionClass $toClass) : Changes |
||
20 | { |
||
21 | if ($fromClass->isInterface() || ! $toClass->isInterface()) { |
||
22 | // checking whether a class became an interface is done in `InterfaceBecameClass` |
||
23 | return Changes::empty(); |
||
24 | } |
||
25 | |||
26 | return Changes::fromList(Change::changed( |
||
27 | sprintf('Class %s became an interface', $fromClass->getName()), |
||
28 | true |
||
29 | )); |
||
32 |