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 (! $toInterface->isTrait() || ! $fromInterface->isInterface()) { |
||
21 | // checking whether an interface became an class is done in `InterfaceBecameClass` |
||
22 | return Changes::empty(); |
||
23 | } |
||
24 | |||
25 | return Changes::fromList(Change::changed( |
||
26 | sprintf('Interface %s became a trait', $fromInterface->getName()), |
||
27 | true |
||
28 | )); |
||
31 |