for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Roave\BackwardCompatibility\DetectChanges\BCBreak\InterfaceBased;
use Roave\BackwardCompatibility\Changes;
use Roave\BackwardCompatibility\DetectChanges\BCBreak\ClassBased\ClassBased;
use Roave\BetterReflection\Reflection\ReflectionClass;
final class UseClassBasedChecksOnAnInterface implements InterfaceBased
{
/** @var ClassBased */
private $check;
public function __construct(ClassBased $check)
$this->check = $check;
}
public function __invoke(ReflectionClass $fromInterface, ReflectionClass $toInterface) : Changes
return $this->check->__invoke($fromInterface, $toInterface);