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