| Conditions | 4 |
| Paths | 3 |
| Total Lines | 14 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 19 | public function compare(ReflectionClass $fromClass, ReflectionClass $toClass) : Changes |
||
| 20 | { |
||
| 21 | if ($fromClass->isInterface() !== $toClass->isInterface()) { |
||
| 22 | // checking whether a class became an interface is done in `ClassBecameInterface` |
||
| 23 | return Changes::new(); |
||
| 24 | } |
||
| 25 | |||
| 26 | if ($fromClass->isAbstract() || ! $toClass->isAbstract()) { |
||
| 27 | return Changes::new(); |
||
| 28 | } |
||
| 29 | |||
| 30 | return Changes::fromArray([Change::changed( |
||
| 31 | sprintf('Class %s became abstract', $fromClass->getName()), |
||
| 32 | true |
||
| 33 | ), |
||
| 37 |